Solo assignment 1 — Towers of Hanoi
The basic solution, the optimal solution when only adjacent pegs may be used, and why it takes 3ⁿ−1 moves
Period: Weeks 7–8 Due: Tue 10 Nov, 23:59
Run the public tests locally first — submit once they pass.
Problems on this page
Download report
The report is a PDF with your code and answers embedded — hand in this one file on Canvas, nothing else. It is signed, and a TA verifies it, so do not edit it. Every problem needs at least one submission before you can download it.