Module M35 · 35 of 35 in teaching order · Advanced
Advanced Problem Solving
Recognize patterns from constraints, combine structures, and reason clearly in interviews.
Lessons
Use input size, value ranges and the shape of the question to narrow the technique before writing code, then argue correctness and test the edges.
Design custom structures by combining a hash map with a linked list, an array or two heaps, and reason about each operation cost. Built-ins in C#, Python, Java, C++.
Topics this module covers
The full module scope. Topics without a lesson above are not written yet.
- recognition
- constraints
- combined structures/patterns
- time-space tradeoffs
- custom structures
- LRU/LFU
- randomized set
- median
- interview reasoning
- correctness
- testing
- final review