Problem Tracker & 2-Week Plan
The list (78 problems)
Section titled “The list (78 problems)”Arrays & Hashing
Section titled “Arrays & Hashing”- Two Sum (Easy) — Arrays
- Contains Duplicate (Easy) — Arrays
- Group Anagrams (Medium) — Arrays
- Top K Frequent Elements (Medium) — Arrays
- Product of Array Except Self (Medium) — Arrays
- Longest Consecutive Sequence (Medium) — Arrays
- Subarray Sum Equals K (Medium) — Prefix Sum
- Maximum Subarray (Medium) — Kadane’s
Two Pointers & Sliding Window
Section titled “Two Pointers & Sliding Window”- Valid Palindrome (Easy) — Two Pointers
- Two Sum II - Input Array Is Sorted (Medium) — Two Pointers
- 3Sum (Medium) — Two Pointers
- Container With Most Water (Medium) — Two Pointers
- Trapping Rain Water (Hard) — Two Pointers
- Best Time to Buy and Sell Stock (Easy) — Sliding Window
- Longest Substring Without Repeating Characters (Medium) — Sliding Window
- Longest Repeating Character Replacement (Medium) — Sliding Window
- Minimum Window Substring (Hard) — Sliding Window
Stack & Queue
Section titled “Stack & Queue”- Valid Parentheses (Easy) — Stack
- Min Stack (Medium) — Stack
- Implement Queue using Stacks (Easy) — Stack
- Evaluate Reverse Polish Notation (Medium) — Stack
- Next Greater Element I (Easy) — Monotonic Stack
- Daily Temperatures (Medium) — Monotonic Stack
- Largest Rectangle in Histogram (Hard) — Monotonic Stack
Binary Search
Section titled “Binary Search”- Binary Search (Easy) — Binary Search
- Find First and Last Position of Element in Sorted Array (Medium) — Binary Search
- Search a 2D Matrix (Medium) — Binary Search
- Koko Eating Bananas (Medium) — Search on Answer
- Find Minimum in Rotated Sorted Array (Medium) — Binary Search
- Search in Rotated Sorted Array (Medium) — Binary Search
Linked List
Section titled “Linked List”- Reverse Linked List (Easy) — Linked List
- Middle of the Linked List (Easy) — Fast & Slow
- Linked List Cycle (Easy) — Fast & Slow
- Merge Two Sorted Lists (Easy) — Linked List
- Remove Nth Node From End of List (Medium) — Two Pointers
- Reorder List (Medium) — Linked List
- LRU Cache (Medium) — Design
- Binary Tree Inorder Traversal (Easy) — Trees (do it iteratively too)
- Invert Binary Tree (Easy) — Trees
- Maximum Depth of Binary Tree (Easy) — Trees
- Diameter of Binary Tree (Easy) — Trees
- Binary Tree Level Order Traversal (Medium) — BFS
- Binary Tree Right Side View (Medium) — BFS
- Validate Binary Search Tree (Medium) — BST
- Kth Smallest Element in a BST (Medium) — BST
- Lowest Common Ancestor of a Binary Tree (Medium) — Trees
- Serialize and Deserialize Binary Tree (Hard) — Trees
Graphs
Section titled “Graphs”- Number of Islands (Medium) — Grid DFS
- Clone Graph (Medium) — DFS
- Rotting Oranges (Medium) — Multi-source BFS
- Course Schedule (Medium) — Topological Sort
- Course Schedule II (Medium) — Topological Sort
- Network Delay Time (Medium) — Dijkstra
- Number of Provinces (Medium) — Union-Find / DFS
Heap, Intervals & Greedy
Section titled “Heap, Intervals & Greedy”- Kth Largest Element in an Array (Medium) — Heap
- K Closest Points to Origin (Medium) — Heap
- Merge k Sorted Lists (Hard) — Heap
- Find Median from Data Stream (Hard) — Two Heaps
- Merge Intervals (Medium) — Intervals
- Insert Interval (Medium) — Intervals
- Non-overlapping Intervals (Medium) — Intervals / Greedy
- Jump Game (Medium) — Greedy
- Jump Game II (Medium) — Greedy
Recursion & Backtracking
Section titled “Recursion & Backtracking”- Subsets (Medium) — Backtracking
- Permutations (Medium) — Backtracking
- Combination Sum (Medium) — Backtracking
- Generate Parentheses (Medium) — Backtracking
- Word Search (Medium) — Grid Backtracking
- N-Queens (Hard) — Backtracking
Dynamic Programming
Section titled “Dynamic Programming”- Climbing Stairs (Easy) — 1D DP
- House Robber (Medium) — 1D DP
- Coin Change (Medium) — 1D DP
- Longest Increasing Subsequence (Medium) — 1D DP
- Unique Paths (Medium) — Grid DP
- Longest Common Subsequence (Medium) — 2D DP
- Partition Equal Subset Sum (Medium) — 0/1 Knapsack
- Word Break (Medium) — 1D DP
- Edit Distance (Medium) — 2D DP
2-week schedule
Section titled “2-week schedule”About 5–7 problems a day (roughly 2.5–3 hours), with two revision days. Easy problems should take 15–20 minutes, so the days with more problems have more easy ones.
| Day | Focus | Problems |
|---|---|---|
| 1 | Read: How to Approach, Complexity, Arrays & Hashing | Two Sum, Contains Duplicate, Group Anagrams, Top K Frequent, Product Except Self |
| 2 | Arrays → Two Pointers | Longest Consecutive, Subarray Sum Equals K, Maximum Subarray, Valid Palindrome, Two Sum II, 3Sum |
| 3 | Two Pointers & Sliding Window | Container With Most Water, Trapping Rain Water, Best Time to Buy/Sell, Longest Substring w/o Repeating, Longest Repeating Char Replacement, Minimum Window Substring |
| 4 | Stack & Monotonic Stack | Valid Parentheses, Min Stack, Queue using Stacks, Evaluate RPN, Next Greater Element I, Daily Temperatures, Largest Rectangle |
| 5 | Binary Search | Binary Search, First & Last Position, Search 2D Matrix, Koko Eating Bananas, Find Min Rotated, Search Rotated |
| 6 | Linked List | Reverse, Middle, Cycle, Merge Two Sorted, Remove Nth From End, Reorder List, LRU Cache |
| 7 | Revision + mock | Redo every ⭐ problem from days 1–6 cold. Then one timed mock: 2 random problems in 45 min, talking out loud (record yourself). |
| 8 | Trees I | Inorder Traversal (recursive + iterative), Invert, Max Depth, Diameter, Level Order, Right Side View |
| 9 | Trees II → Graphs | Validate BST, Kth Smallest in BST, LCA, Serialize/Deserialize, Number of Islands, Clone Graph, Rotting Oranges |
| 10 | Graphs → Heap | Course Schedule, Course Schedule II, Network Delay Time, Number of Provinces, Kth Largest, K Closest Points, Merge k Sorted Lists |
| 11 | Heap, Intervals, Greedy → Backtracking | Find Median, Merge Intervals, Insert Interval, Non-overlapping Intervals, Jump Game, Jump Game II, Subsets |
| 12 | Backtracking → DP | Permutations, Combination Sum, Generate Parentheses, Word Search, N-Queens, Climbing Stairs, House Robber |
| 13 | Dynamic Programming | Coin Change, LIS, Unique Paths, LCS, Partition Equal Subset Sum, Word Break, Edit Distance |
| 14 | Revision + mock | Redo every ⭐ from days 8–13. Two timed mocks (one Medium graph/tree, one Medium DP). Re-read every “Recognize it when” box. |
After the two weeks
Section titled “After the two weeks”- Spaced repetition: redo each ⭐ problem 3 days later, then 7 days later.
- Mixed practice: pick problems without knowing the pattern (LeetCode “random”, or a contest’s first 2 problems). Spotting the pattern yourself is what the interview actually tests.
- Mock with a friend or use Pramp / interviewing.io. Being watched is a different skill from solving alone, and it’s the one that fixes fumbling under pressure.
- Keep a mistakes log: one line per bug, like “forgot
new ArrayList<>(path)” or “useda - bcomparator and it overflowed”. Read it before every interview.