20 patterns. zero memorizing.
Algorithms you can watch move.
Every interview pattern, explained with a one-minute animation and a visualizer you can poke, pause and step through.
sliding windowstep 9 / 25
window"bc"
seen{b,c}
best so far3
Yes, it repeats. Move the left edge past ‘a’.
Pick a pattern
All 20 patterns →FOUNDATIONS
Start here. Arrays, pointers, windows, stacks and search.01–06- 01Arrays & HashingTrade memory for instant lookups.
- 02Two PointersTwo indices walking toward an answer.
- 03Sliding WindowA range that grows and shrinks as it scans.
- 04Prefix SumKeep running totals, then subtract to get any range.
- 05StackRemember the past, answer on the way back.
- 06Binary SearchHalve the search space every step.
STRUCTURES & RECURSION
Lists, trees, heaps and trying every option.07–12ADVANCED
Graphs, dynamic programming, greedy choices, intervals, grids and bits.13–20- 13GraphsExplore neighbours with BFS and DFS.
- 14Advanced GraphsCheapest paths with Dijkstra, joined groups with Union-Find.
- 151-D DPSolve small, remember, build up.
- 162-D DPFill a table cell by cell.
- 17GreedyTake the best move now. Never look back.
- 18IntervalsSort by start, then merge or split.
- 19Math & GeometryWalk and transform grids with simple coordinates.
- 20Bit ManipulationUse AND, XOR and shifts to work on single bits.
01 WATCH
A 60-second explainer
Intuition first. The animation shows why it works before any code appears.
02 PLAY
Step through it
Your input, your pace. Forward and back, one line at a time.
03 PRACTISE
Solve the classics
A short, ordered list of real interview problems, with progress saved.