Some problems are Russian dolls: the answer for the whole is built from the answer for a smaller copy, until you reach a copy small enough to answer directly. A recursive method says exactly that — a base case for the smallest doll, a recursive case that opens the next one, and progress so it always gets smaller (Ch 1). Each call gets its own sticky note on the call stack with its own variables: the notes pile up while winding down to the base case and peel off in reverse while unwinding, so work before the call happens on the way down and work after it on the way up (Ch 2).
To design one, answer three questions — the smallest input and its answer, how to shrink, how to combine — and take the leap of faith, trusting the smaller call the way a manager trusts an assistant; and choose the shrinking wisely, because halving turned 31 calls into 6 (Ch 3). Recursion is at home on self-similar structures like nested folders, where the base case hides in an empty loop and the code handles any depth — pre-order working on the way down, post-order combining on the way up (Ch 4). Its shapes — linear, halving, tree, divide and conquer, structural — each carry a typical cost, with helper methods for extra state and no tail-call rescue in Java (Ch 5).
Backtracking is chalk in a maze: choose, explore, unchoose, walking the whole decision tree — 2ⁿ subsets, n! permutations — with one shared state that must be restored after every branch (Ch 6). When the same small problem keeps returning, write its answer in the corner of the board — memoization — and 331 million calls become 79 (Ch 7). Space is the depth, not the number of calls; Java runs out after tens of thousands of nested frames, so deep recursions become loops with an explicit stack on the heap (Ch 8). And the classic bugs — missing base cases, no progress, forgotten undos, shared results, hidden copies — each have a simple check (Ch 9).
That completes this Java course. You can now write Java, design classes, reason about complexity, use every collection, run code concurrently, understand the JVM, and think recursively. Next: Data Structures and Algorithms (coming soon), where these tools become the patterns that solve interview problems — one topic per file, each paired with its question list in DSA practice questions (coming soon).