Towers of Hanoi: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 2,256: | Line 2,256: | ||
if($n -eq 1) { |
if($n -eq 1) { |
||
"$a -> $c" |
"$a -> $c" |
||
} else{ |
} else{ |
||
hanoi ($n - 1) $a $c $b |
hanoi ($n - 1) $a $c $b |
||
hanoi 1 $a $b $c |
hanoi 1 $a $b $c |