Filter löschen
Filter löschen

Tower of Hanoi problem

1 Ansicht (letzte 30 Tage)
준우 권
준우 권 am 25 Mär. 2022
Kommentiert: Sam Chak am 25 Mär. 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.
  1 Kommentar
Sam Chak
Sam Chak am 25 Mär. 2022
Can you provide a sample code?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Dialog Boxes finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by