Data Structures & Algorithms
Thirteen patterns that cover most coding rounds. Learn to spot each one, watch the algorithm run on your own input, then code it.
Up next1.1 · Sliding window: how to spot it4 minWhat you'll learn
- Recognise which pattern a question needs from the way it is worded.
- Watch each algorithm run on your own input until the invariant is obvious.
- Write the classic solutions from memory, with a short Python version of every problem.
- Explain time and space complexity out loud while you code.
- See where each pattern shows up in GenAI systems: rate limiters, retrieval, ranking and decoding.