Slashdot Mirror


108 Ways To Do The Towers of Hanoi

hlarwood74 writes "While it is common to program in a few different languages, somebody has written "towers of hanoi" in 108 different ways, most of them in different programming languages. It's not just the number of languages though ... there are many neat implementations and in some cases he's come up with some strange ways of solving hanoi such as this: "you ping the hanoi machine with the number of disks encoded in the type of service field, and you get response packets whose sequence numbers represent the disk moves need to solve the puzzle". I wanted to ask "why" but the title of the page (hanoimania) explains a few things :)"

2 of 192 comments (clear)

  1. Question for the homosexuals in the room: by Anonymous Coward · · Score: -1, Troll

    WHO THE FUCK CARES!?

    He he, he said 'buttsechs'

  2. Re:Die nerds die! by Anonymous Coward · · Score: -1, Troll

    What you don't realise is that in a few years' time, when she's sick of being treated like shit by a bastard like you, she's going to realise that life isn't all about hot sex and orgasms, and end up going steady with one of us nerds. While you remain unloved by anyone due to your abysmal attitude towards people. So fuck you.