ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
TagIDNameProficiencyComments1st2nd3rd4th6th7th8th9th10th11th12th13th14th15th
2
Binary
Search
704Binary Search2022/07/2210/17/202211/4/2022
3
69Sqrt(x)Newton or binary search7/22/202210/17/202211/4/2022
4
374Guess Number Higher or Lower7/22/202210/17/202211/4/2022
5
33Search in Rotated Sorted Array7/22/202210/17/202211/4/2022
6
278First Bad Version7/22/202210/17/202211/4/2022
7
162Find Peak Element7/22/202210/19/202211/4/2022
8
153Find Minimum in Rotated Sorted Array7/22/202210/19/202211/4/2022
9
Find Minimum in Rotated Sorted Array II
10
34Find First and Last Position of Element in Sorted Array7/22/202210/19/202211/4/2022
11
658Find K Closest Elementsread solution7/22/202210/31/202211/4/2022
12
702Search in a Sorted Array of Unknown Sizefind boundries
13
367Valid Perfect Squareuse long10/31/202211/4/2022
14
50Pow(x, n)Iterative vs Recursive
15
154Find Minimum in Rotated Sorted Array III
16
719Find K-th Smallest Pair Distance
priority queue / prefix + bs / dp + bs / window or bs
10/31/202211/4/2022
17
410Split Array Largest Sumdfs, dp, binary search10/31/202211/4/2022
18
74Search a 2D Matrix10/27/202211/4/2022
19
29Divide Two Integersread solution
20
302Smallest Rectangle Enclosing Black Pixels
21
35Search Insert Position7/29/202210/19/202211/4/2022
22
981Time Based Key-Value Store
Collections.binarySearch / Pair / Lamda comparator / TreeMap, solution1, solution2, solution3
23
875Koko Eating BananasArrays.stream(piles).min().getAsInt()
24
644Maximum Average Subarray IIIterative / binary search + dp
25
378Kth Smallest Element in a Sorted Matrixheap / binary search, solution7/29/2022
26
668Kth Smallest Number in Multiplication Tableheap / binary search7/29/202211/3/2022
27
852Peak Index in a Mountain Array7/29/202211/3/202211/4/2022
28
81Search in Rotated Sorted Array II7/29/202211/3/202211/4/2022
29
4Median of Two Sorted Arraysbinary search / findKth7/29/202210/22/202211/4/2022
30
786K-th Smallest Prime Fractionbinary search / heap7/29/2022
31
1011Capacity To Ship Packages Within D Days
int or long? constrains of inputs, Arrays.stream(weights).sum()
8/9/202210/18/202211/4/2022
32
240Search a 2D Matrix IIdivide & conquer solution is amazing7/29/202210/27/202211/4/2022
33
1889Minimum Space Wasted From Packagingsolution
34
540Single Element in a Sorted Array7/29/202210/19/202211/4/2022
35
Two
Pointers
350Intersection of Two Arrays II
sort, hash, Arrays.copyOfRange(), Arrays.copyOf()
7/29/202211/3/202211/4/2022
36
167Two Sum II - Input array is sorted7/29/202211/3/202211/4/2022
37
876Middle of the Linked List8/1/202211/3/202211/4/2022
38
283Move Zeroes8/1/202211/3/202211/4/2022
39
26Remove Duplicates from Sorted Arrayy8/1/202210/25/202211/4/2022
40
170Two Sum III - Data structure designspace or speed ?
41
75Sort Colors8/1/202210/27/202211/4/2022
42
153Sumnon-sort solution8/1/202210/20/202211/4/2022
43
2593Sum Smaller8/1/2022
44
163Sum Closest8/1/202210/20/202211/4/2022
45
141Linked List Cycle8/1/202210/19/202211/4/2022
46
142Linked List Cycle IIunderstand Floyd's Tortoise and Hare Algorithm8/1/202210/19/202211/4/2022
47
160Intersection of Two Linked Lists九章solution8/1/202210/20/202211/4/2022
48
11Container With Most Water8/1/202210/20/202211/4/2022
49
42Trapping Rain Waterdp / stack / two pointers8/1/202210/20/202211/4/2022
50
125Valid PalindromeCharacter.isLetterOrDigit()8/1/202211/3/202211/4/2022
51
455Assign Cookies
52
917Reverse Only Letters
53
986Interval List Intersections
54
925Long Pressed Nameread solution
55
992Subarrays with K Different Integerssliding window, similer here and here
56
340Longest Substring with At Most K Distinct Characterssliding window
57
209Minimum Size Subarray Sum
58
862Shortest Subarray with Sum at Least Ktwo pointer + monotonous deque
59
904Fruit Into Basketssliding window
60
1004Max Consecutive Ones IIIIsliding window
61
1234Replace the Substring for Balanced Stringgsliding window, read solution
62
1248Count Number of Nice Subarraysmultiple solutions
63
881Boats to Save Peoplegreedy + two pointer
64
977Squares of a Sorted Arraymerge sort
65
912Sort an Array
merge sort/ quick sort / heap sort, read solution
11/7/2022
66
1Two Sum8/1/202210/19/202211/5/2022
67
80Remove Duplicates from Sorted Array II
68
1013Partition Array Into Three Parts With Equal Sum
69
184SumkSum solution10/21/2022
70
4544Sum IIkSum solution, recursion for nested loop10/21/202211/5/2022
71
143iSort Colors IIquicksort varient
72
31iPartition Arrayquicksort varient
73
625iPartition Array IIsort colors varient
74
215Kth Largest Element in an Arraytwo quickselect templates from here and here8/1/2022
75
533iTwo Sum - Closest to target
76
382iTriangle Count
77
969Pancake Sorting
78
610iTwo Sum - Difference equals to target
79
3Longest Substring Without Repeating Characters8/1/202210/18/202211/5/2022
80
BFS
DFS
UnionFind
(Graph &
Search)
200Number of IslandsUnion Find, DFS, BFS8/1/202210/18/202211/5/2022
81
305Number of Islands IIUnion Find
82
102Binary Tree Level Order Traversalstack, bfs8/1/202210/18/202211/5/2022
83
107Binary Tree Level Order Traversal II8/1/202210/18/202211/5/2022
84
207Course Schedule
https://jingsam.github.io/2020/08/11/topological-sort.html
8/2/202210/18/202211/5/2022
85
210Course Schedule II8/2/202210/18/202211/5/2022
86
444Sequence Reconstruction8/2/2022
87
133Clone GraphDFS, BFS10/19/202211/5/2022
88
127Word Ladder10/21/202211/5/2022
89
126Word Ladder IIBFS + DFS
90
297Serialize and Deserialize Binary TreeDFS, BFS10/21/202211/5/2022
91
449Serialize and Deserialize BSTarticle and article8/2/202211/3/202211/5/2022
92
261Graph Valid TreeDFS, BFS, UnionFind
93
103Binary Tree Zigzag Level Order Traversal
94
611iKnight Shortest Path
95
624iRemove Substrings
96
618iSearch Graph Nodes
97
598iZombie in Matrixdays - 1
98
431iConnected Component in Undirected GraphBFS, UnionFind(HashMap)
99
317Shortest Distance from All Buildingspractice bugs free
100
794iSliding Puzzle II