daily pastebin goal
39%
SHARE
TWEET

Untitled

jkavart Feb 13th, 2018 78 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
Top