Watch the animation until the movement feels obvious. If you can picture it, you can code it.
Every pattern has a one-line story — a train window, a tortoise and a hare, two bouncers. Say it out loud once.
Steal the template, do the 3 classic problems listed, then tap “Got it” and move on. Recognition beats memorization.
Sliding Window
Spot it in the interview when you hear…
Code template · Python
The 3 classics to practice
The 4-week plan that actually fits a job
About 45–60 minutes a day. One pattern per sitting: watch, say the story, code the template from memory, do one classic. Weekends are for redoing the ones that felt shaky — not new ones.
The bread & butter
- Sliding Window, Two Pointers
- Fast & Slow, Prefix Sum, HashMap
- Binary Search, Monotonic Stack
- Redo day + 1 mock
Lists, trees, heaps
- Merge Intervals, Cyclic Sort
- Linked List Reversal, Tree BFS & DFS
- Two Heaps, Top K, K-Way Merge
- Redo day + 1 mock
Where offers are won
- Topological Sort, Backtracking
- Greedy, Graph Traversal, Union Find
- Trie, Bit Manipulation, Matrix Islands
- Redo day + 1 mock
Make it automatic
- DP Patterns + Knapsack DP
- Re-do your 5 weakest patterns
- 3 timed mocks (45 min each)
- Say every story out loud once
All 25 at a glance
Tap any row to load that pattern's animation above. Print this page and stick the table on your wall — interviewers ask from this list far more than you'd expect.
| # | Pattern | One-line trigger | Complexity |
|---|