Visualize an algorithm
Every entry below runs on the same deterministic execution engine: generate all steps up front, then step forwards, backwards and through the code with the exact state each moment produced.
Recursion & Dynamic Programming
5 visualizationsRecursion Call Stack
beginnerWatch frames push on the way down and pop on the way back.
O(n)O(n) space
Fibonacci: Recursion vs Memoization
intermediateThe same recurrence with and without a cache — a DP warm-up.
O(n)O(n) space
Climbing Stairs
beginnerCount the ways up with steps of 1 or 2 — Fibonacci in disguise.
O(n)O(n) space
0/1 Knapsack
advancedTake or skip each item — fill a 2D table of best values.
O(n·W)O(n·W) space
Longest Common Subsequence
advancedCompare two strings character by character in a 2D table.
O(m·n)O(m·n) space
Not sure where to start?
Follow the guided paths — beginner, intermediate and advanced — in order.