Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Enter number of discs: 3
- In the beginning:
- | | |
- === | |
- ===== | |
- ======= | |
- ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^
- Step 1: Moving disc #1 from a to c
- | | |
- | | |
- ===== | |
- ======= | ===
- ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^
- Step 2: Moving disc #2 from a to b
- | | |
- | | |
- | | |
- ======= ===== ===
- ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^
- Step 3: Moving disc #1 from c to b
- | | |
- | | |
- | === |
- ======= ===== |
- ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^
- Step 4: Moving disc #3 from a to c
- | | |
- | | |
- | === |
- | ===== =======
- ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^
- Step 5: Moving disc #1 from b to a
- | | |
- | | |
- | | |
- === ===== =======
- ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^
- Step 6: Moving disc #2 from b to c
- | | |
- | | |
- | | =====
- === | =======
- ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^
- Step 7: Moving disc #1 from a to c
- | | |
- | | ===
- | | =====
- | | =======
- ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^
- Total steps: 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement