---
title: "Jim Chung (@JimHYC) | Hashnode"
description: "Leetcode. Read the latest articles by Jim Chung on Hashnode."
url: "https://hashnode.com/@JimHYC"
---

@JimHYC

# Jim Chung

@JimHYC · Joined May 2022

Leetcode

### [4\. Median of Two Sorted Arrays](https://superbcoder.hashnode.dev/4-median-of-two-sorted-arrays?utm_source=hashnode&utm_medium=feed)

Problem Link class Solution: def findMedianSortedArrays(self, A: List\[int\], B: List\[int\]) -> float: if len(A) > len(B): return self.findMedianSortedArrays(B, A) La, Lb = len(A), len(B) total = La + Lb h...

1 min read · [superbcoder.hashnode.dev](https://superbcoder.hashnode.dev/4-median-of-two-sorted-arrays?utm_source=hashnode&utm_medium=feed)

[Jun 10, 2022](https://hashnode.com/posts/4-median-of-two-sorted-arrays/62a2a6e323f5f5accf27454d)

### [321\. Create Maximum Number](https://superbcoder.hashnode.dev/321-create-maximum-number?utm_source=hashnode&utm_medium=feed)

Problem Link class Solution: def maxNumber(self, nums1: List\[int\], nums2: List\[int\], k: int) -> List\[int\]: res = \[\] lower = max(0, k - len(nums2)) # pick all elements from nums2 upper = min(k, len(nums1)) # pick all elemen...

1 min read · [superbcoder.hashnode.dev](https://superbcoder.hashnode.dev/321-create-maximum-number?utm_source=hashnode&utm_medium=feed)

[Jun 9, 2022](https://hashnode.com/posts/321-create-maximum-number/62a1776e6cc4647a1b003632)

### [386\. Lexicographical Numbers](https://superbcoder.hashnode.dev/386-lexicographical-numbers?utm_source=hashnode&utm_medium=feed)

Problem Link Given an integer n, return all the numbers in the range \[1, n\] sorted in lexicographical order. Example: Input: n = 32 Output: \[1,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23,24,25,26,27,28,29,3,30,31,32,4,5,6,7,8,9\] class Solution: ...

1 min read · [superbcoder.hashnode.dev](https://superbcoder.hashnode.dev/386-lexicographical-numbers?utm_source=hashnode&utm_medium=feed)

[Jun 8, 2022](https://hashnode.com/posts/386-lexicographical-numbers/62a08cc23e84266b46094fb9)

### [220\. Contains Duplicate III](https://superbcoder.hashnode.dev/220-contains-duplicate-iii?utm_source=hashnode&utm_medium=feed)

Problem Link Given an integer array nums and two integers k and t, return true if there are two distinct indices i and j in the array such that abs(nums\[i\] - nums\[j\]) <= t and abs(i - j) <= k. Solution Bucket size: t + 1 class Solution: def c...

1 min read · [superbcoder.hashnode.dev](https://superbcoder.hashnode.dev/220-contains-duplicate-iii?utm_source=hashnode&utm_medium=feed)

[Jun 7, 2022](https://hashnode.com/posts/220-contains-duplicate-iii/629f7a077c63506288937100)

### [1139\. Largest 1-Bordered Square](https://superbcoder.hashnode.dev/1139-largest-1-bordered-square?utm_source=hashnode&utm_medium=feed)

Problem Link Let dpVer\[i\]\[j\] := the number of continuous 1’s from grid\[0\]\[j-1\] to grid\[i-1\]\[j-1\] Let dpHor\[i\]\[j\] := the number of continuous 1’s from grid\[i-1\]\[0\] to grid\[i-1\]\[j-1\] class Solution: def largest1BorderedSquare(self, grid: List\[List\[...

1 min read · [superbcoder.hashnode.dev](https://superbcoder.hashnode.dev/1139-largest-1-bordered-square?utm_source=hashnode&utm_medium=feed)

[Jun 6, 2022](https://hashnode.com/posts/1139-largest-1-bordered-square/629e29c84d2584547c17d5cc)
