[Haskell-beginners] tower hanoi problem

Joel Neely joel.neely at gmail.com
Sun Feb 15 12:04:11 UTC 2015


Hint:

So each of your has an odd number of lines.
What do all the center lines have in common?
What is common about all of the prefixes (groups of lines before the
center) and suffixes (groups of lines following the center)?


On Sun, Feb 15, 2015 at 2:51 AM, Roelof Wobben <r.wobben at home.nl> wrote:

> 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
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>



-- 
Beauty of style and harmony and grace and good rhythm depend on simplicity.
- Plato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150215/a2d065ff/attachment.html>


More information about the Beginners mailing list