ID Question Diff Freq Data Structur 1Two Sum25array
1Two Sum25set
8String to Integer (atoi)25 string
153Sum35 array
20Valid Parentheses25 string
21Merge Two Sorted Lists25 linked list
21Merge Two Sorted Lists25 linked list
21Merge Two Sorted Lists25 linked list
28Implement strStr()45 string
28Implement strStr()45 string
28Implement strStr()45 string
50Pow(x, n)35
50Pow(x, n)35
56Merge Intervals45 array
56Merge Intervals45linked list
56Merge Intervals45red-black tree 57Insert Interval45 array
57Insert Interval45linked list
57Insert Interval45red-black tree 65Valid Number25 string
70Climbing Stairs25
73Set Matrix Zeroes35 array
88Merge Sorted Array25 array
88Merge Sorted Array25 array
98Validate Binary Search Tree35 tree
125Valid Palindrome25 string
127Word Ladder35 graph
127Word Ladder35 graph 2Add Two Numbers34 linked list
2Add Two Numbers34 linked list
12Integer to Roman34
13Roman to Integer24
22Generate Parentheses34 string
23Merge k Sorted Lists34 linked list
23Merge k Sorted Lists34heap
23Merge k Sorted Lists34
24Swap Nodes in Pairs24 linked list
27Remove Element14 array
46Permutations34 array
49Anagrams34 string
49Anagrams34hashtable
67Add Binary24 string
67Add Binary24 string
69Sqrt(x)44
77Combinations34
78Subsets34 array
78Subsets34 array
79Word Search34 array
91Decode Ways34 string
91Decode Ways34 string
102Binary Tree Level Order Traversal34 tree
129Sum Root to Leaf Numbers24 tree
131Palindrome Partitioning34 string
4Median of Two Sorted Arrays53array
7Reverse Integer23
10Regular Expression Matching53 string
10Regular Expression Matching53 string
17Letter Combinations of a Phone Number33 string
19Remove Nth Node From End of List23 linked list 26Remove Duplicates from Sorted Array13 array
29Divide Two Integers43
29Divide Two Integers43
33Search in Rotated Sorted Array43 array
34Search for a Range43 array
39Combination Sum33 array
43Multiply Strings43 string
43Multiply Strings43 string
44Wildcard Matching53 string
44Wildcard Matching53 string
44Wildcard Matching53 string
51N-Queens43 array
52N-Queens II43 array
53Maximum Subarray33 array
62Unique Paths23 array
63Unique Paths II33 array
64Minimum Path Sum33 array
72Edit Distance43 string
74Search a 2D Matrix33 array
81Search in Rotated Sorted Array II53 array
82Remove Duplicates from Sorted List II33 linked list 82Remove Duplicates from Sorted List II33 linked list 83Remove Duplicates from Sorted List13 linked list 86Partition List33 linked list 93Restore IP Addresses33 string
94Binary Tree Inorder Traversal43 tree
94Binary Tree Inorder Traversal43hashtable
94Binary Tree Inorder Traversal43
103Binary Tree Zigzag Level Order Traversa43 queue
103Binary Tree Zigzag Level Order Traversa43tree
105Construct Binary Tree from Preorder and33 array
105Construct Binary Tree from Preorder and33tree
106Construct Binary Tree from Inorder and 33 array
106Construct Binary Tree from Inorder and 33tree
108Convert Sorted Array to Binary Search T23 tree
109Convert Sorted List to Binary Search Tr43 linked list 109Convert Sorted List to Binary Search Tr43 linked list 112Path Sum13 tree
114Flatten Binary Tree to Linked List33 tree
114Flatten Binary Tree to Linked List33 tree
116Populating Next Right Pointers in Each 33 tree
128Longest Consecutive Sequence43 array
130Surrounded Regions43 array
130Surrounded Regions43 array
132Palindrome Partitioning II43 string
3Longest Substring Without Repeating Cha32 string
3Longest Substring Without Repeating Cha32 string
5Longest Palindromic Substring42 string
9Palindrome Number22
11Container With Most Water32 array
184Sum32 array
25Reverse Nodes in k-Group42 linked list 25Reverse Nodes in k-Group42 linked list 31Next Permutation52 array
35Search Insert Position22 array
36Valid Sudoku22 array
37Sudoku Solver42 array
38Count and Say22 string
40Combination Sum II42 array
41First Missing Positive52 array
42Trapping Rain Water42 array
42Trapping Rain Water42 array
45Jump Game II42 array
47Permutations II42 array
48Rotate Image42 array
54Spiral Matrix42 array
55Jump Game32 array
59Spiral Matrix II32 array
61Rotate List32 linked list 66Plus One12 array
68Text Justification42 string
75Sort Colors42 array
75Sort Colors42 array
76Minimum Window Substring42 string
80Remove Duplicates from Sorted Array II22 array
84Largest Rectangle in Histogram52 array
87Scramble String52 string
87Scramble String52 string
89Gray Code42
90Subsets II42 array
90Subsets II42 array
92Reverse Linked List II32 linked list 97Interleaving String52 string
97Interleaving String52 string
99Recover Binary Search Tree42 tree
101Symmetric Tree12 tree
110Balanced Binary Tree12 tree
113Path Sum II22 tree
115Distinct Subsequences42 string
117Populating Next Right Pointers in Each 42 tree
124Binary Tree Maximum Path Sum42 tree
6ZigZag Conversion31 string
14Longest Common Prefix21 string
163Sum Closest31 array
30Substring with Concatenation of All Wor31 string
32Longest Valid Parentheses41 string
58Length of Last Word11 string
60Permutation Sequence51
60Permutation Sequence51
71Simplify Path31 string
85Maximal Rectangle51 array
85Maximal Rectangle51 array
95Unique Binary Search Trees II41 tree
95Unique Binary Search Trees II41 tree
96Unique Binary Search Trees31 tree
100Same Tree11 tree
104Maximum Depth of Binary Tree11 tree
107Binary Tree Level Order Traversal II31 tree
111Minimum Depth of Binary Tree11 tree
118Pascal's Triangle21 array
119Pascal's Triangle II21 array
120Triangle31 array
121Best Time to Buy and Sell Stock21 array
122Best Time to Buy and Sell Stock II31 array
123Best Time to Buy and Sell Stock III41 array
126Word Ladder II11
Algorithms
sort
Two Pointers
Math
Two Pointers
Stack
sort
Two Pointers
merge
Two Pointers
KMP
rolling hash
Binary Search
Math
sort
merge
ed-black tree
sort
merge
ed-black tree
Math
DP
Two Pointers
merge
DFS
Two Pointers
BFS
shortest path
Two Pointers
Math
Math
Math
DFS
sort
Two Pointers
merge
linked list
Two Pointers
permutation
Two Pointers
Math
Binary Search
combination
Recursion
combination
DFS
Recursion
DP
BFS
DFS
DFS
Binary Search
Math
Recursion
DP
DFS
Two Pointers
Two Pointers
Binary Search
Math
Binary Search
Binary Search
combination
Two Pointers
Math
Recursion
DP
greedy
DFS
DFS
DP
DP
DP
DP
DP
Binary Search
Binary Search
Recursion
Two Pointers linked list
Two Pointers
DFS
Recursion
morris
Stack
BFS
Stack
DFS
DFS
DFS
Recursion Two Pointers DFS
Recursion Stack
DFS
BFS
DFS
DP
Two Pointers hashtable
Math
Two Pointers Recursion Two Pointers permutation
DFS
Two Pointers combination sort
Two Pointers Stack
permutation Two Pointers Math
sort
Two Pointers Two Pointers Two Pointers Stack
Recursion DP
combination Recursion combination
Two Pointers Recursion DP
DFS
DFS
DFS
DFS
DP
DFS
DFS
Two Pointers Two Pointers DP
permutation Math
Stack
DP
Stack
DP
DFS
DP
DFS
DFS
BFS
DFS
DP
DP
greedy
DP