daily pastebin goal
55%
SHARE
TWEET

Untitled

jkavart Feb 13th, 2018 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top