Tower of Hanoi problem

조회 수: 7 (최근 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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by