Module M11 · 11 of 35 in teaching order · Intermediate
Recursion
Base cases, the call stack, recursion trees and the first look at memoization.
Lessons
How a recursive function runs: base and recursive cases, one stack frame per call, unwinding, and what happens at the stack limit in C#, Python, Java and C++.
Topics this module covers
The full module scope. Topics without a lesson above are not written yet.
- base case
- recursive case
- call stack
- recursion tree
- linear/multiple/tail recursion
- complexity
- recurrences
- iteration
- memoization introduction