Advertisement
jkavart

Untitled

Feb 13th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. hanoiMain(n)
  2.     loadIn(n-1)//takes n-1 S->A3
  3.     n S->A2
  4.     Hanoi(backwards, n-1)// the code he gave us, n-1 A3->A1
  5.     n A2->D
  6.     loadOut(n-1)//takes n-1 A1->D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement