Recursion
Watch the call stack grow, shrink, and finally make sense.
Recursion progress0 / 5
- Recursion BasicsA function that solves a smaller copy of itself.5m
- The Call StackEvery pending call waits its turn on a stack of frames.5m
- Factorial and FibonacciOne call per step, or two calls that redo everything.6m
- MemoizationWrite each answer down once, never solve it twice.5m
- BacktrackingChoose, explore, then undo the choice and try the next.6m