DevAffan / AffiCodes-Hacktoberfest2024

Make your first Pull Request for Hacktoberfest 2024! Don’t forget to spread the love, and if you find it helpful, consider giving us a ⭐️. This repository includes useful algorithms and code to help beginners, featuring multiple languages and ideas. You’ll also find some beginner-friendly mini projects to get you started!
40 stars 295 forks source link

Create tower_of_Hanoi.py #248

Closed dipenluitel closed 1 month ago

dipenluitel commented 1 month ago

mathematical puzzle that involves moving a set of disks from one rod (source) to another rod (destination). Output for n = 3 Move disk 1 from A to C Move disk 2 from A to B Move disk 1 from C to B Move disk 3 from A to C Move disk 1 from B to A Move disk 2 from B to C Move disk 1 from A to C