011.Container-With-Most-Water (M+)
015.3Sum (M)
016.3Sum-Closet (M)
018.4Sum (M)
088.Merge-Sorted-Array (M)
165.Compare-Version-Numbers (E)
056.Merge-Intervals (M)
167.Two-Sum-II-Input-Array-Is-Sorted (E)
142.Linked-List-Cycle-II (M)
-
Sliding window
209.Minimum-Size-Subarray-Sum (M)
438.Find-All-Anagrams-In-a-String (M)
567.Permutation-in-String (M)
LCOF57.和为 s 的连续正数序列 (M-)
076.Minimum-Window-Substring (H) -
Sliding window: Distinct Characters
003.Longest-Substring-Without-Repeating-Character (M) -
Two pointers for two seuqences
986.Interval-List-Intersections (M)
704.Binary-Search (E)
033.Search-In-Rotated-Sorted-Array (M-)
069.Sqrtx (E)
081.Search-in-Rotated-Sorted-Array-II (M)
162.Find-Peak-Element (H)
852.Peak-Index-In-a-Mountain-Array (H)
034.Find-First-And-Last-Position-of-Element-in-Sorted-Array (M)
035.Search-Insert-Position (E)
154.Findr-Minimum-in-Rotated-Sorted-Array-II (H)
-
Binary Processing
-
Binary Search by Value
Find K-th Element
347.Top-K-Frequent-Elements (M)
Hash+Prefix
930.Binary-Subarrays-With-Sum (M)
Maintain intervals
623.Add-One-Row-to-Tree (M)
098.Validate-Binary-Search-Tree (M)
222.Count-Complete-Tree-Nodes (M+)
099.Recover-Binary-Search-Tree (H)
1373.Maximum-Sum-Bst-in-Binary-Tree (H)
102.Binary-Tree-Level-Order-Traversal (M)
129.Sum-Root-to-Leaf-Numbers (E)
199.Binary-Tree-Right-Side-View (M)
101.Symmetric-Tree (E)
572.Subtree-of-Another-Tree (M)
110.Balanced-Binary-Tree (E)
543.Diameter-Of-Binary-Tree (M)
-
Path in a tree
124.Binary-Tree-Maximum-Path-Sum (M)
112.Path-Sum (E) -
Serialization & Hashing
297.Serialize-and-Deserialize-Binary-Tree (H-) -
Tree & Sequence
105.Construct-Binary-Tree-From-Preorder-and-Inorder-Traversal (H-)
106.Construct-Binary-Tree-From-Inorder-and-Postorder-Traversal (M+) -
N-ary Tree
020.Valid-Parentheses (E)
032.Longest-Valid-Parentheses (H)
636.Exclusive-Time-of-Functions (H-)
155.Min-Stack (M+)
225.Implement-Stack-using-Queues (M)
232.Implement-Queue-Using-Stacks (H-)
-
montonic stack: next greater / smaller
042.Trapping-Rain-Water (H)
496.Next-Greater-Element-I (H-)
503.Next-Greater-Element-II (H-)
739.Daily-Temperatures (H-) -
parse expression
071.Simplify-Path (M)
227.Basic-Calculator-II (H-)
022.Generate-Parentheses (M)
079.Word-Search (M)
200.Number-of-Islands (M)
494.Target-Sum (M)
695.Max-Area-of-Island (M)
093.Restore-Ip-Addresses (M)
039.Combination-Sum (M)
040.Combination-Sum-II (M+)
047.Permutations-II (M+)
078.Subsets (M)
417.Pacific-Atlantic-Water-Flow (M+)
139.Word-Break (M+)
002.Add-Two-Numbers (M)
206.Reverse-Linked-List (E)
092.Reverse-Linked-List-II (M)
141.Linked-List-Cycle (E)
024.Swap-Nodes-in-Pairs (M)
025.Reverse-Nodes-In-k-Group (H)
019.Remove-Nth-Node-From-End-of-List (M)
234.Palindrome-Linked-List (M)
148.Sort-List (M)
062.Unique-Paths (E)
063.Unique-Paths-II (M)
064.Minimum-Path-Sum (M)
070.Climbing-Stairs (E)
221.Maximal-Square (H-)
基本型I
198.House-Robber (E)
-
基本型II
300.Longest-Increasing-Subsequence (M+) -
背包型
322.Coin-Change (M+) -
双序列型
718.Maximum-Length-of-Repeated-Subarray (M)
1143.Longest-Common-Subsequence (M+) -
maximum subarray
053.Maximum-Subarray (M)
152.Maximum-Product-Subarray (M+)
121.Best-Time-To-Buy-And-Sell-Stock (M)
315.Count-of-Smaller-Numbers-After-Self (H)
005.Longest-Palindromic-Substring (H)
014.Longest-Common-Prefix (E)
647.Palindromic-Substrings (M)
1556.Thousand-Separator (E)
207.Course-Schedule (H-)
002.Add-Two-Numbers (M)
007.Reverse-Integer (M)
415.Add-Strings (E)
043.Multiply-Strings (M)
050.Powx-n (M)
089.Gray-Code (M+)
Combinatorics
046.Permutations (M+)
055.Jump-Game (M)
045.Jump-Game-II (M)
455.Assign-Cookies (E)
135.Candy (H)
435.Non-overlapping-Intervals (M+)
452.Minimum-Number-of-Arrows-to-Burst-Balloons (M)
605.Can-Place-Flowers (E+)
763.Partition-Labels (M)
406.Queue-Reconstruction-by-Height (M)
665.Non-decreasing-Array (M+)
Parenthesis
921.Minimum-Add-To-Make-Parentheses-Valid (M)
Linked List
146.LRU-Cache
048.Rotate-Image (M+)
54.Spiral-Matrix (M)
59.Spiral-Matrix-II (M)
394.Decode-String (M)