[Haskell-beginners] tower hanoi problem

Roelof Wobben r.wobben at home.nl
Sun Feb 15 08:51:52 UTC 2015


YCH schreef op 15-2-2015 om 9:45:
> How about if I say "Actually target was c not b and here is one more
> disc. I put it on a. Now you should move all to c"
>
>

Hanoi 1 a b c

A -> C

Hanoi 2 a b c

A -> B
A -> C
B -> C

Hanoi 3 a b c

A -> C
A -> B
C -> B
A -> C
B -> A
B -> C
A -> C


Roelof




More information about the Beginners mailing list