This list gives you a practical question order. It is not meant to be a random dump. Finish one topic, take the linked quizzes, then move to the next topic.
Question Roadmap
| Topic | Start With | Then Add |
|---|---|---|
| Arrays | Two Sum, Kadane, Move Zeroes | Sort Colors, Next Permutation |
| Strings | Anagram, Palindrome, Sliding Window | KMP, Longest Common Prefix |
| Linked List | Reverse, Cycle, Middle | Remove Nth From End, Merge Lists |
| Trees | Depth, Traversals, Validate BST | LCA, Diameter, Kth Smallest |
| Graphs | Connected Components, Islands, Flood Fill | Course Schedule, Union Find |
| DP | Climbing Stairs, House Robber | Coin Change, LIS, LCS, Knapsack |
| Advanced | Heap, Greedy, Bits, Math | Trie, LRU, Segment Tree, Fenwick |
Practice Rule
For each question, write three things before code: the brute force, the optimized invariant, and one dry run. This prevents memorized solutions from collapsing in interviews.
FAQs
Should I do all easy questions first?
No. Mix easy and medium questions inside the same pattern so the pattern becomes transferable.
When should I attempt hard questions?
After you can explain the medium version without looking at code.