Interview pattern recognition

10 Must-Know Time Complexity Patterns

Live visualizations of the classic cheat sheet — plus ten patterns the graphic left out. Open any row for when this method wins, space cost, and three best use cases.

10 core patterns10 extra patternslooping animations

Not on the original sheet

Ten more patterns you actually meet

The Instagram graphic stops at permutations. Interviews also throw √n bounds, cubic DP, sliding windows, heaps, graphs, and amortized growth — each with its own animation below.

Growth lab

Watch the curves pull apart

Drag n. Bars use a log scale so factorial and exponential still fit on screen — in real time they would already be off the page.

1 → 16 · log-scaled bars

O(1)
1.0
O(log n)
3.0
O(√n)
2.8
O(n)
8.0
O(n log n)
24
O(n²)
64
O(n³)
512
O(2ⁿ)
256
O(n!)
40.3k