← CS 302 Home

Recursion — Interactive

Visualize how recursive algorithms build a call stack and form recursion trees. Step through Factorial, Fibonacci, and Binary Search to see base cases, recursive calls, and return values propagate.

Normal
0
Calls
0
Max Depth
0
Cur Depth
Try it: Press Play to watch fact(5) build a call stack 5 levels deep, hit the base case, and unwind multiplying as it returns.
Press Play or Step to begin.
Pending
Active
Returned
Duplicate