LeetCode Patterns - Categorized Problem List
Arrays & Hashing
- Two Sum (LC 1)
- Contains Duplicate (LC 217)
- Product of Array Except Self (LC 238)
- Valid Sudoku (LC 36)
- Group Anagrams (LC 49)
- Top K Frequent Elements (LC 347)
Two Pointers
- Valid Palindrome (LC 125)
- Two Sum II - Sorted (LC 167)
- 3Sum (LC 15)
- Container With Most Water (LC 11)
- Trapping Rain Water (LC 42)
Sliding Window
- Best Time to Buy and Sell Stock (LC 121)
- Longest Substring Without Repeating Characters (LC 3)
- Longest Repeating Character Replacement (LC 424)
- Permutation in String (LC 567)
- Minimum Window Substring (LC 76)
Binary Search
- Binary Search (LC 704)
- Search Insert Position (LC 35)
- Find Minimum in Rotated Sorted Array (LC 153)
- Search in Rotated Sorted Array (LC 33)
- Median of Two Sorted Arrays (LC 4)
- Koko Eating Bananas (LC 875)
Stack
- Valid Parentheses (LC 20)
- Min Stack (LC 155)
LeetCode Patterns - Categorized Problem List
- Daily Temperatures (LC 739)
- Evaluate Reverse Polish Notation (LC 150)
- Largest Rectangle in Histogram (LC 84)
Linked List
- Reverse Linked List (LC 206)
- Merge Two Sorted Lists (LC 21)
- Linked List Cycle (LC 141)
- Reorder List (LC 143)
- Copy List with Random Pointer (LC 138)
- LRU Cache (LC 146)
Trees / Binary Trees / BST
- Maximum Depth of Binary Tree (LC 104)
- Invert Binary Tree (LC 226)
- Same Tree (LC 100)
- Binary Tree Level Order Traversal (LC 102)
- Validate Binary Search Tree (LC 98)
- Lowest Common Ancestor (LC 236)
Trie
- Implement Trie (LC 208)
- Add and Search Word (LC 211)
- Word Search II (LC 212)
Heap / Priority Queue
- Kth Largest Element in Array (LC 215)
- Top K Frequent Elements (LC 347)
- Find Median from Data Stream (LC 295)
- Merge K Sorted Lists (LC 23)
Backtracking
- Subsets (LC 78)
- Permutations (LC 46)
LeetCode Patterns - Categorized Problem List
- Combination Sum (LC 39)
- Word Search (LC 79)
- N-Queens (LC 51)
Greedy
- Jump Game (LC 55)
- Merge Intervals (LC 56)
- Insert Interval (LC 57)
- Gas Station (LC 134)
- Candy (LC 135)
Dynamic Programming
- Climbing Stairs (LC 70)
- House Robber (LC 198)
- Longest Palindromic Substring (LC 5)
- Palindromic Substrings (LC 647)
- Coin Change (LC 322)
- Longest Increasing Subsequence (LC 300)
- Word Break (LC 139)
- Maximum Product Subarray (LC 152)
Graphs (DFS/BFS)
- Number of Islands (LC 200)
- Clone Graph (LC 133)
- Pacific Atlantic Water Flow (LC 417)
- Course Schedule (LC 207)
- Graph Valid Tree (LC 261)
Union Find
- Graph Valid Tree (LC 261)
- Number of Connected Components (LC 323)
- Accounts Merge (LC 721)
- Redundant Connection (LC 684)