Tower Move and the Idea That Repeats Itself
Move a stack of discs in a tiny web game and meet recursion, the neat idea of a job that solves itself by doing a smaller copy.
Subject · 2 posts
Move a stack of discs in a tiny web game and meet recursion, the neat idea of a job that solves itself by doing a smaller copy.
Recursion is hard because everyone traces it. The habit that makes it mechanical: write the contract, trust the smaller call, never trace the stack.
Problem Solving From Zero08