How to use this
The goal isn’t to memorise questions. It’s to be fluent in the small set of ideas that top-tier interviews keep testing. When you can recognise the shape of a problem, you can rebuild the solution under pressure, in any language.
How every page is laid out
Section titled “How every page is laid out”- TL;DR: the idea in two sentences.
- The idea in plain words: an analogy and the core insight.
- See it: an interactive visualization. Change the input, step forward and back, and watch the invariant hold.
- When to reach for it: the phrases in a problem statement that should make you think of it.
- How it works: the template, then code in Python, TypeScript and C#. Your language choice is remembered across pages.
- What it costs: time and space, and why.
- Variations, pitfalls, and what to say in the interview.
- Check yourself: short quizzes that test the reasoning, not recall.
A study loop that works
Section titled “A study loop that works”- Read the page and play with the visualization until you can predict the next step before pressing ▶.
- Close the page. Re-write the template from memory in your strongest language.
- Do one of the “practice on your own” exercises, then a Sandbox problem from the same stage.
- If you get stuck in a Sandbox round, the interviewer’s hints point you back to the right page here.