Your DSA Interview Roadmap
This course exists because the alternative is worse. The standard advice is “grind LeetCode”, and the standard result is four hundred solved problems and no ability to solve the four hundred and first — because solving problems and learning patterns are different activities, and only one of them transfers.
So the organising unit here is the pattern, not the problem. Twenty phases, each teaching a small number of patterns with an interactive visualization, a template you memorise, a dry run you can reproduce on a whiteboard, and a ladder of real LeetCode problems that exercise exactly that pattern.
Pick a plan, not a page
Section titled “Pick a plan, not a page”Be honest about your timeline. The wrong plan is the main reason people stall.
| You have | Plan | Cover | Skip |
|---|---|---|---|
| 1–2 weeks | Emergency | Phases 3, 5, 9, 10, 12 only. One pass, templates memorised, ~60 problems. | Everything else. Accept the gaps. |
| 4–6 weeks | Sprint | Phases 1–14. All the interview-weight patterns, ~150 problems. | Phases 16–17 (competitive-programming tail). |
| 3 months | Standard | Phases 1–15 and 18–20 in order, ~300 problems, plus timed mocks in the last two weeks. | Phase 17 unless you are targeting ByteDance. |
| 6 months+ | Complete | All 20 phases, every problem set, competitive programming included. | Nothing. |
What each phase is for
Section titled “What each phase is for”| Phase | What it gives you | Skippable? |
|---|---|---|
| 01 Foundations | Big-O you can defend out loud, recurrences, the call stack | No — complexity analysis is graded explicitly at Google |
| 02 Python for DSA | collections, heapq, bisect, fast IO, and where Python is secretly slow | No if Python is your interview language |
| 03 Core data structures | Arrays, strings, linked lists, stacks, queues, hash tables, heaps, trees, tries, union-find, graphs | No. This is the floor. |
| 04 Sorting and searching | The sorts, Timsort, and the binary-search template that actually works | No — binary search variants are everywhere |
| 05 Array and string patterns | Sliding window, two pointers, prefix sums, monotonic stack, Kadane’s | No. Highest-frequency phase in the course. |
| 06 Search and selection | Binary search on the answer, quickselect, top-K, two heaps, k-way merge | No |
| 07 Intervals and greedy | Merge intervals, sweep line, greedy scheduling | No — and unusually heavy at Uber |
| 08 Linked list patterns | Fast/slow pointers, in-place reversal, dummy heads | No — cheap to learn, still asked constantly |
| 09 Tree patterns | Tree BFS and DFS, BST properties, LCA, construction, serialization | No |
| 10 Graph patterns | BFS, DFS, topological sort, cycle detection, shortest paths, union-find, grids | No |
| 11 Recursion and backtracking | Subsets, permutations, combinations, divide and conquer | No |
| 12 Dynamic programming | Recursion → memo → table, knapsack, LIS, LCS, edit distance, grids, bitmask | No |
| 13 Bit manipulation and math | XOR tricks, bit hacks, number theory, geometry | Partly — XOR patterns yes, competitive number theory no |
| 14 Design problems | LRU/LFU, iterators, randomised structures, trackers and feeds | No — near-guaranteed at Bloomberg and Amazon |
| 15 Simulation | Stateful iteration, parsing, the tedious-but-real implementation problems | Rarely taught, regularly asked |
| 16 Advanced graphs | MST, max flow, SCC, bridges | Yes for most; no for ByteDance |
| 17 Advanced CP | Segment trees, Fenwick, sparse tables, string algorithms, DP optimisations | Yes unless you are doing contests or targeting ByteDance |
| 18 Templates and cheatsheets | Everything condensed for the night before | Use as reference throughout |
| 19 Interview strategy | The seven-step loop, communication, contest strategy | No — this is the part most people skip and then lose rounds on |
| 20 Problem sets | Mixed graded sets, in-browser judge | No — mixed practice is where recognition gets tested |
| 21 Company guides | Nine interview loops, what each one actually tests, and a comparison matrix | Only for companies you are actually interviewing at |
The same phases, with live counts
Section titled “The same phases, with live counts”The table above is the editorial view — what each phase buys you and whether you can skip it. This is the mechanical one, generated from the course itself, so it cannot fall behind when a page is added:
153 pages across 24 phases. The 17-phase teaching sequence reaches 444 distinct problems; the rest are reference surfaces you dip into rather than work through.
The teaching sequence
In order — later phases assume earlier ones. Phases 01 and 02 carry no problem ladders because they teach language and analysis rather than patterns.
Reference and practice
Not a sequence. Use these throughout — the cheatsheets the night before, the problem sets for mixed recognition practice, the company guides when a specific loop is imminent.
Two things worth reading off it. Phases 01 and 02 show no problem count, because they teach analysis and the language rather than patterns — there is nothing to drill, which is also why they are the two phases most people can compress. And 05 Arrays & Strings is the largest single block of practice in the course, which is the quantitative version of the “highest frequency phase” claim in the table above.
Where the public sheets fit
Section titled “Where the public sheets fit”You have probably seen NeetCode 150, Blind 75, Striver’s A2Z, or LeetCode’s own Top Interview 150. They are good lists. They are also lists — they tell you what to solve and not how the pattern works, which is why this course teaches patterns and then hands you the sheets as practice.
All of them are tracked here, mapped onto these phases, with your progress shared across every one of them:
Read the last figure first. Those 50 problems are what the sheet authors independently agree on, which makes them the highest-value problems on this site — and the ones to do before anything else, whichever sheet you eventually commit to.
How much any two sheets share
| Sheet A | Sheet B | Shared | Share of the smaller sheet |
|---|---|---|---|
| NeetCode 150 | LeetCode Top Interview 150 | 77 | 51% |
| NeetCode 150 | Blind 75 | 74 | 99% |
| Blind 75 | LeetCode Top Interview 150 | 50 | 67% |
The consensus problems
Every problem below appears in at least 3 of the sheets. Finish these and you have covered the core of all of them simultaneously.
- 1Two Sumeasyin 3 sheets
- 20Valid Parentheseseasyin 3 sheets
- 121Best Time to Buy and Sell Stockeasyin 3 sheets
- 21Merge Two Sorted Listseasyin 3 sheets
- 141Linked List Cycleeasyin 3 sheets
- 242Valid Anagrameasyin 3 sheets
- 70Climbing Stairseasyin 3 sheets
- 100Same Treeeasyin 3 sheets
- 104Maximum Depth of Binary Treeeasyin 3 sheets
- 125Valid Palindromeeasyin 3 sheets
- 190Reverse Bitseasyin 3 sheets
- 191Number of 1 Bitseasyin 3 sheets
- 3Longest Substring Without Repeating Charactersmediumin 3 sheets
- 153Summediumin 3 sheets
- 53Maximum Subarraymediumin 3 sheets
- 56Merge Intervalsmediumin 3 sheets
- 200Number of Islandsmediumin 3 sheets
- 11Container With Most Watermediumin 3 sheets
- 33Search in Rotated Sorted Arraymediumin 3 sheets
- 49Group Anagramsmediumin 3 sheets
- 102Binary Tree Level Order Traversalmediumin 3 sheets
- 139Word Breakmediumin 3 sheets
- 207Course Schedulemediumin 3 sheets
- 238Product of Array Except Selfmediumin 3 sheets
- 300Longest Increasing Subsequencemediumin 3 sheets
- 322Coin Changemediumin 3 sheets
- 133Clone Graphmediumin 3 sheets
- 208Implement Trie (Prefix Tree)mediumin 3 sheets
- 5Longest Palindromic Substringmediumin 3 sheets
- 19Remove Nth Node From End of Listmediumin 3 sheets
- 39Combination Summediumin 3 sheets
- 48Rotate Imagemediumin 3 sheets
- 54Spiral Matrixmediumin 3 sheets
- 55Jump Gamemediumin 3 sheets
- 57Insert Intervalmediumin 3 sheets
- 73Set Matrix Zeroesmediumin 3 sheets
- 79Word Searchmediumin 3 sheets
- 98Validate Binary Search Treemediumin 3 sheets
- 105Construct Binary Tree from Preorder and Inorder Traversalmediumin 3 sheets
- 128Longest Consecutive Sequencemediumin 3 sheets
- 153Find Minimum in Rotated Sorted Arraymediumin 3 sheets
- 198House Robbermediumin 3 sheets
- 211Design Add and Search Words Data Structuremediumin 3 sheets
- 226Invert Binary Treemediumin 3 sheets
- 230Kth Smallest Element in a BSTmediumin 3 sheets
- 76Minimum Window Substringhardin 3 sheets
- 295Find Median from Data Streamhardin 3 sheets
- 212Word Search IIhardin 3 sheets
- 23Merge k Sorted Listshardin 3 sheets
- 124Binary Tree Maximum Path Sumhardin 3 sheets
How to actually use a page
Section titled “How to actually use a page”Every topic page follows the same spine, in this order, for a reason:
- The cue — how you recognise the pattern from the problem statement alone. This is the skill that transfers; the rest is mechanics.
- Visual intuition — a step-through visualization you can pause, scrub and step backwards through. Stop on the frame you do not understand.
- The template — memorise this. Not the idea of it; the code.
- Dry run — a hand trace. Reproduce it on paper before you trust yourself.
- Complexity — say it out loud, every time, before you are asked.
- Variant map — the mutations interviewers stack on the base pattern.
- Pitfalls — the specific ways the solution comes back wrong.
- Interviewer follow-ups — the questions that separate “pass” from “strong hire”.
- Practice ladder — real problems, easiest first, with sheet membership and reported companies. Tick them off; progress saves in your browser.
- Exercises — write the code here, in the browser, before leaving the page.
- Self-check — five questions. If any takes more than a few seconds, reread.
- Recall card — five lines to revise from a week later.
What this course does not cover
Section titled “What this course does not cover”Said plainly, so you can plan around it:
- System design at scale — distributed systems, sharding, consistency. Needed for L5+ and senior roles; not here.
- Language trivia beyond Python — no Java or C++ specifics.
- Behavioural preparation in depth — Phase 19 covers the coding-round communication that gets scored alongside your code, and Amazon’s Leadership Principles specifically, but this is not a behavioural-interview course.
- Take-home projects and domain rounds — ML, frontend, infrastructure specialisations have their own tracks on this site.
Next: How to Use This Course — the study loop, spaced revision, and what to do when you get stuck on a problem for forty minutes.
pch.coffeeTagline
pch.coffeeCtapch.feedbackHeading
pch.feedbackSubheading