Skip to content
World 4 · Towers of Hanoi and Recursion · 8 min · PRO

Three pegs, one rule: the puzzle

Move the whole tower, one disc at a time

PRO · Puzzle Algorithms Lab

World 4: Towers of Hanoi and Recursion is part of PRO

The first world of Puzzle Algorithms Lab is free. PRO opens the other 25 lessons in 6 worlds — simulations, quizzes and all.

  • Recursion: solving a problem by solving a smaller one
  • Two to the n, minus one: counting the moves
  • The legend of 64 discs: when exponential means impossible
  • Shortest path on a grid: from BFS to weights
  • Dijkstra: always expand the cheapest
PRO includes
  • All 60 labs — every world, every lesson
  • Practice exams and certificates

$8.33/mo, billed yearly ($99.99) · or $39.99 monthly

My notes
Only saved in this browserAll my notes →

Report a mistake

What is wrong?
0 / 2000 · at least 10 characters
Sent along with your report
  • Page
  • About Three pegs, one rule: the puzzle — Puzzle Algorithms Lab · puzzles/three-pegs-one-rule
Plus your browser type. Reports go to our support system; see the privacy notice.