Azzera filtri
Azzera filtri

Tower of Hanoi problem

1 visualizzazione (ultimi 30 giorni)
준우 권
준우 권 il 25 Mar 2022
Commentato: Sam Chak il 25 Mar 2022
There are three bars and n disks with holes in the center are stacked like towers on A bars. I'm going to move this tower to the C-bar. Enter N and create a program that shows the process of moving this tower. However, the disk grows as the number goes up, and the large disk cannot go up on the small disk. Tip: Use a recursive function.

Risposte (0)

Categorie

Scopri di più su Dialog Boxes in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by