Factorial
The classic linear recursion example. Witness how the call stack "winds" up and "unwinds" to calculate n!.
Fibonacci
Explore branching recursion through a dynamic execution tree. Analyze redundant calls and the exponential complexity of O(2ⁿ).
Power of 2
Compare recursive and iterative patterns side-by-side. Understand how loops and function calls differ in memory and execution flow.
Largest in List
Trace recursion on lists. See how the list is shortened at each step and elements are compared during the "unwind" phase.