フィルターのクリア

Tower of Hanoi problem

1 回表示 (過去 30 日間)
준우 권
준우 권 2022 年 3 月 25 日
コメント済み: Sam Chak 2022 年 3 月 25 日
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 件のコメント
Sam Chak
Sam Chak 2022 年 3 月 25 日
Can you provide a sample code?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by