Skip to content
C Codeloom

Topics / Recursion

🌀

Recursion

Base case, recursive case, and the call stack — the mental model behind trees, DP, and backtracking.

Why learn Recursion?

  • Once recursion clicks, half of DSA gets easier.

  • Underpins divide-and-conquer, DP, backtracking, and most tree problems.

  • A genuinely different way to think about state.

What you can build with Recursion

Tree and graph traversals Backtracking (N-Queens, Sudoku, subsets) Divide-and-conquer algorithms

Recursion tutorials

1 article

Hand-written tutorials, ordered as a recommended learning path.

  1. 01 Recursion Basics A practical introduction to recursion — the base case, the recursive case, the call stack, and how to think about problems that solve themselves through smaller versions of themselves.