Skip to content

Recursion & Backtracking

Memoization: never solve twice

From the Recursion & Backtracking lesson: Solve a smaller copy of the problem; undo choices that fail.

Step with → or Next. When a question pops up, make your guess. Switch to “Try your own” to run it on your input.

Getting the demo ready…

More from Recursion & Backtracking