π§© DSA Roadmap (Java)
Targets by week 24
- 350β400 quality problems (mostly medium), each one logged
- Solve an unseen medium in β€ 25 min and explain it clearly while coding
- LeetCode contest rating ~1800+ (a good signal, not a must)
- Every pattern in Pattern Playbook at least at βcan recognize + implementβ
Method (this matters more than the number of problems)
- Learn the pattern (theory + 2 canonical problems with a solution walkthrough)
- Solve 8β15 problems in that pattern, easy β medium β 1β2 hard
- 25-min rule: stuck β look at a hint only β another 10 min β read the solution β re-code it from memory the next day
- Log it with the DSA Problem template: pattern, key insight (one line), complexity, mistakes
- Revise (
#revise) on days 3, 7, and 21 - Speak while you solve. Practise the interview voice: clarify β examples β brute force β optimize β code β test β complexity
Week-by-week
| Week | Pattern(s) | Target |
|---|---|---|
| W1 | Complexity, Java collections, arrays & hashing | 15 |
| W2 | Two pointers, sliding window, prefix sum | 18 |
| W3 | Stack, monotonic stack/queue, binary search (+ on answer) | 18 |
| W4 | Linked list, recursion, fast/slow pointers | 15 |
| W5 | Binary trees: traversals, BFS/DFS, diameter, LCA, serialize | 18 |
| W6 | BST, heaps, top-K, two heaps (median), merge K | 15 |
| W7 | Backtracking: subsets, permutations, combinations, N-Queens, word search | 15 |
| W8 | Graphs I: BFS/DFS, grids, islands, clone graph, bipartite | 15 |
| W9 | Graphs II: topo sort (Kahn), union-find, Dijkstra, multi-source BFS | 15 |
| W10 | DP I: 1-D (climbing, house robber, decode ways, coin change) | 15 |
| W11 | DP II: 2-D/grid/strings (LCS, edit distance, unique paths, palindromes) | 15 |
| W12 | DP III: knapsack (0/1, unbounded), LIS, partition, interval DP | 12 |
| W13 | Greedy, intervals (merge, meeting rooms, jump game) | 15 |
| W14 | Tries, bit manipulation, math, revision | 15 |
| W15 | Advanced graphs (MST Kruskal/Prim, Bellman-Ford, Floyd, bridges) + segment tree / Fenwick | 12 |
| W16 | DP IV: bitmask, tree DP, DP on subsequences, hard mix | 10 |
| W17β18 | Company-tagged mediums (Amazon, Google, Microsoft, Uber, Atlassian, Flipkart) | 40 |
| W19β22 | Maintenance: 2 mediums or 1 hard/day + contests | 60 |
| W23β26 | Timed mocks, weak-pattern repair | 40 |
Problem sources
- β NeetCode 150 β NeetCode 250 (pattern-organized; video explanations)
- Striverβs A2Z DSA sheet / SDE sheet (very popular for Indian MNC prep)
- LeetCode company-tagged lists (Premium is worth it in W17+)
- Grind 75 (Tech Interview Handbook) for a final pass
- Contests: LeetCode weekly (Sunday) + biweekly (Saturday); optional Codeforces Div 3
Books
- Grokking Algorithms 2e (warm-up) Β· The Algorithm Design Manual (Skiena) Β· CLRS (reference only)
- Cracking the Coding Interview (classic) Β· Beyond Cracking the Coding Interview (2025, updated strategy)
Related: Pattern Playbook Β· Java DSA Toolkit
π§ͺ Labs (π’ warm-up β π‘ core β π΄ hard β β« boss)
- π‘ Speed drills: 3 easy problems in 20 min total, every Monday
- π΄ Hard Friday: 1 hard problem, a 60-min limit, then write an editorial for it
- π΄ Contest discipline: every LeetCode weekly + biweekly; upsolve every missed problem within 48 h
- β« Mock marathons from W17: 2 problems in 45 min, spoken aloud, recorded
π§ Cognitive tasks
- Predict the complexity and pattern before coding; log accuracy weekly
- Constraint flip: re-solve a problem with n = 10βΉ or a streaming input
- Teach-back: explain one solution per day in 2 minutes as if in an interview
π°οΈ Orbit integration
- Topo sort β the DAG executor Β· heaps β timers/priority queues Β· union-find β dependency grouping Β· tries β prompt/tool name routing Β· sliding windows β rate limiters Β· consistent hashing β shard routing
Go deeper
π§© Pattern Playbook Β· Java DSA Toolkit