Preparing for coding interviews
You can write functions and loops, and you want to solve unseen algorithm problems out loud under time pressure.
By the end: Read a problem’s constraints, pick a pattern for a reason, implement it, test it, and explain the cost.
0 of 41 steps done≈ 5 h of lessons
A lesson counts as done once you mark it Practicing or Mastered at the top of the lesson. A guided session counts once you tick it off on its own page. Labs are part of the order but are not counted.
1.Read the problem before the pattern
- Complexity explorerLab / practiceEvery later lesson states its cost in this language.
- Read the contract before choosing a patternGuided sessionState what a valid answer is and which complexity classes fit the input.
- ArrayFoundation≈ 10 minDSA
- StringFoundation≈ 10 minDSA
- Hash MapFoundation≈ 5 minDSAThe most common way to turn O(n²) into O(n).
- Hash SetFoundation≈ 5 minDSA
2.Search, pointers and windows
- Binary SearchFoundation≈ 5 minDSA
- Two Pointers (Opposite Ends)Foundation≈ 10 minDSA
- Two Pointers (Same Direction)Foundation≈ 10 minDSA
- Sliding Window (Fixed Size)Foundation≈ 10 minDSA
- Sliding Window (Variable Size)Foundation≈ 10 minDSA
- Prefix SumFoundation≈ 10 minDSA
- Make boundaries and progress explicitGuided sessionExplain the invariant that makes a search or window safe to shrink.
3.Choose the state that makes operations cheap
- Linked ListFoundation≈ 10 minDSA
- Fast & Slow PointersFoundation≈ 10 minDSA
- StackFoundation≈ 5 minDSA
- Monotonic StackFoundation≈ 5 minDSA
- QueueFoundation≈ 5 minDSA
- Priority QueueIntermediate≈ 10 minDSA
- Binary TreeIntermediate≈ 10 minDSA
- Binary Search TreeIntermediate≈ 10 minDSA
- Choose the state that makes operations cheapGuided sessionConnect required operations to a stack, heap, map or linked structure.
4.Graphs: connectivity and ordering
- Adjacency ListIntermediate≈ 10 minDSA
- Breadth-First Search (BFS)Intermediate≈ 5 minDSA
- Depth-First Search (DFS)Intermediate≈ 5 minDSA
- Topological SortIntermediate≈ 10 minDSA
- Union-Find (Disjoint Set Union)Advanced≈ 10 minDSA
- Dijkstra's AlgorithmIntermediate≈ 10 minDSA
- Model connectivity and orderingGuided sessionChoose traversal or topological ordering from the question rather than its vocabulary.
5.Recursion, greedy and dynamic programming
- Recursion & BacktrackingIntermediate≈ 10 minDSA
- Subsets (Power Set)Intermediate≈ 5 minDSA
- PermutationsIntermediate≈ 5 minDSA
- Greedy AlgorithmsIntermediate≈ 5 minDSA
- Merge IntervalsIntermediate≈ 5 minDSA
- Dynamic ProgrammingAdvanced≈ 10 minDSA
- Memoization (Top-Down DP)Advanced≈ 5 minDSA
- Tabulation (Bottom-Up DP)Advanced≈ 5 minDSA
- Coin ChangeAdvanced≈ 5 minDSA
- Longest Increasing SubsequenceAdvanced≈ 10 minDSA
- Derive a recurrence instead of recalling codeGuided sessionDefine a state, transition, base case and evaluation order.
6.Put it together