>> hannoi(4)
将 1 号碟子从A ---> B
将 2 号碟子从A ---> C
将 1 号碟子从B ---> C
将 3 号碟子从A ---> B
将 1 号碟子从C ---> A
将 2 号碟子从C ---> B
将 1 号碟子从A ---> B
将 4 号碟子从A ---> C
将 1 号碟子从B ---> C
将 2 号碟子从B ---> A
将 1 号碟子从C ---> A
将 3 号碟子从B ---> C
将 1 号碟子从A ---> B
将 2 号碟子从A ---> C
将 1 号碟子从B ---> C
Cite As
uu tsi (2026). hannoi (https://uk.mathworks.com/matlabcentral/fileexchange/59615-hannoi), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2016b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
