Skip to content

Master Problem Index & Tracker ​

—
Solved by you
205
Total problems
—
Overall progress

What & why: every canonical problem in this book, in one checkable list — grouped by pattern/chapter, with difficulty and a direct LeetCode link. Use it as a coverage map and a progress tracker: tick the box each time you can reproduce a solution cold. Chapter titles link back to the full write-up.

How to use this tracker

don't grind top-to-bottom. Follow the study plan: learn a pattern's card, then drill its rows here. Re-touch on the spaced-repetition schedule. A row isn't "done" when you've seen it — it's done when you can re-derive the invariant and code the template from the name alone.

Legend: ☐ = not yet reproducible cold · Easy Medium Hard · 91 canonical problems across 18 pattern areas. Technique-only sections (e.g. tree traversals, KMP, k-way merge, modular arithmetic) are taught in-chapter and not double-listed here.

Arrays & Hashing ​

✓ProblemDifficultyLeetCode
☐Two SumEasyopen
☐Group AnagramsMediumopen
☐Product of Array Except SelfMediumopen
☐Longest Consecutive SequenceMediumopen
☐Rotate ImageMediumopen
☐Spiral MatrixMediumopen
☐Set Matrix ZeroesMediumopen

Prefix Sum ​

✓ProblemDifficultyLeetCode
☐Subarray Sum Equals KMediumopen
☐Difference ArrayMediumopen
☐2D Prefix SumMediumopen

Two Pointers / Sliding Window ​

✓ProblemDifficultyLeetCode
☐3SumMediumopen
☐Container With Most WaterMediumopen
☐Squaring a Sorted ArrayEasyopen
☐Sort ColorsMediumopen
☐Trapping Rain WaterHardopen
☐Smallest Subarray With Sum ≥ TargetMediumopen
☐Longest Substring Without Repeating CharactersMediumopen
☐Minimum Window SubstringHardopen
☐Longest Repeating Character ReplacementMediumopen
☐Sliding Window MaximumHardopen

Cyclic Sort ​

✓ProblemDifficultyLeetCode
☐Find the Missing NumberEasyopen
☐Find All Missing / All Duplicate NumbersMediumopen
☐First Missing PositiveHardopen

Stacks & Monotonic Stack ​

✓ProblemDifficultyLeetCode
☐Valid ParenthesesEasyopen
☐Daily TemperaturesMediumopen
☐Largest Rectangle in HistogramHardopen
☐Min Stack (O(1) minimum)Mediumopen

Binary Search & Greedy ​

✓ProblemDifficultyLeetCode
☐Search in Rotated Sorted ArrayMediumopen
☐Koko Eating BananasMediumopen
☐Split Array Largest Sum / Book AllocationHardopen
☐Median of Two Sorted ArraysHardopen
☐Jump Game IIMediumopen
☐Gas StationMediumopen
☐Task Scheduler / Activity SelectionMediumopen

Intervals & Sweep Line ​

✓ProblemDifficultyLeetCode
☐Merge IntervalsMediumopen
☐Meeting Rooms IIMediumopen
☐Non-overlapping IntervalsMediumopen

Backtracking & Divide-Conquer ​

✓ProblemDifficultyLeetCode
☐Subsets & CombinationsMediumopen
☐PermutationsMediumopen
☐Combination SumMediumopen
☐N-QueensHardopen
☐Word SearchMediumopen
☐Merge Sort & Count of Smaller Numbers After SelfHardopen
☐QuickselectMediumopen

Dynamic Programming ​

✓ProblemDifficultyLeetCode
☐House Robber (1D DP)Mediumopen
☐Maximum Subarray (Kadane)Mediumopen
☐Partition Equal Subset Sum (Knapsack)Mediumopen
☐Coin ChangeMediumopen
☐Unique Paths / Min Path Sum (Grid DP)Mediumopen
☐LIS / LCS / Edit Distance (Subsequence DP)Mediumopen
☐Burst Balloons (Interval DP)Hardopen
☐Stock with Cooldown (State-Machine DP)Mediumopen
☐Travelling Salesman (Bitmask DP)Hardopen

Bits, Segment & Fenwick Tree ​

✓ProblemDifficultyLeetCode
☐Single Number I / II / IIIEasyopen
☐Counting BitsEasyopen
☐Subset Generation via BitmasksMediumopen
☐Fenwick TreeMediumopen
☐Segment TreeHardopen

Math & Number Theory ​

✓ProblemDifficultyLeetCode
☐Fast Exponentiation — Pow(x, n)Mediumopen
☐Euclid's GCD & LCM — GCD of StringsEasyopen
☐Sieve of Eratosthenes — Count PrimesMediumopen

Design & Randomized ​

✓ProblemDifficultyLeetCode
☐Insert Delete GetRandom O(1)Mediumopen
☐Reservoir Sampling — Random NodeMediumopen

Strings ​

✓ProblemDifficultyLeetCode
☐Longest Palindromic SubstringMediumopen
☐Encode and Decode StringsMediumopen

Linked Lists ​

✓ProblemDifficultyLeetCode
☐Reverse a Linked ListEasyopen
☐Linked List Cycle IIMediumopen
☐Merge Two / K Sorted ListsHardopen
☐Reorder / Palindrome via Split-Reverse-MergeMediumopen
☐LRU CacheMediumopen

Trees ​

✓ProblemDifficultyLeetCode
☐Maximum Depth, Balanced, DiameterMediumopen
☐Lowest Common AncestorMediumopen
☐Validate BST & BST operationsMediumopen
☐Serialize / DeserializeHardopen
☐Construct Tree from TraversalsMediumopen
☐Tree DPMediumopen

Heaps ​

✓ProblemDifficultyLeetCode
☐Kth Largest / Top K FrequentMediumopen
☐Find Median from Data StreamHardopen

Tries ​

✓ProblemDifficultyLeetCode
☐Implement TrieMediumopen
☐Word Search IIHardopen
☐Maximum XOR of Two NumbersMediumopen

Graphs ​

✓ProblemDifficultyLeetCode
☐Number of IslandsMediumopen
☐Rotting OrangesMediumopen
☐Course ScheduleMediumopen
☐Network Delay Time (Dijkstra)Mediumopen
☐Cheapest Flights K Stops (Bellman-Ford)Mediumopen
☐Min Cost to Connect Points (MST)Mediumopen
☐Number of Provinces (Union-Find)Mediumopen
☐Clone Graph & BipartiteMediumopen
☐Bridges & Articulation Points (Tarjan)Hardopen
☐Eulerian Path (Hierholzer)Hardopen

Released under MIT license.

💡 Quick shortcuts
H HintsR Run JavaA AI Help