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 :)"

16 of 192 comments (clear)

  1. Somebody by Anonymous Coward · · Score: -1, Offtopic

    Somebody has no sex life...

    1. Re:Somebody by Anonymous Coward · · Score: -1, Offtopic

      I meant to link to http://www.kernelthread.com/

      Although I guess I wasn't wrong anyway.

      a href="http://slashdot.org/~BladeMelbourne

  2. As I learned in my College CS diploma, by Anonymous Coward · · Score: -1, Offtopic

    It is official; UN Statistics now confirms: the USA is dying.

    One more crippling bombshell hit the already beleaguered USA when president Bush confirmed that their markets have dropped yet again, now down to less than a fraction their value when he began his term. Coming on the heels of a recent UN survey which plainly states that America has lost its way, this news serves to reinforce what we've known all along. America is collapsing in complete disarray, as fittingly exemplified by being the most hated nation in the world.

    You don't need to be a foreigner to predict America's future. The hand writing is on the wall: America faces a bleak future. In fact there won't be any future at all for Americans because the USA is dying. Things are looking very bad for America. As many of us are already aware, as the American economy continues to collapse.

    Red ink flows like a river of blood. For all practical purposes, all Americans are dead, or at least should be.

  3. I am so happy! by Anonymous Coward · · Score: -1, Offtopic
    I am so happy!

    My Sun Ultra 80 arrived today!

    I'm going to skip work today, brew some great coffee and just play with this lovely machine all day!!!

  4. Teh BUTTSECHS by Anonymous Coward · · Score: -1, Offtopic

    Is on teH SpOKe !1!!!1one

    Dip my nuts in it, bitches!

    1. Re:Teh BUTTSECHS by Anonymous Coward · · Score: -1, Offtopic
      Dip my nuts in it, bitches!

      you know, i've been thinking about experimenting with man-sex for a long time and now i think i am ready for it. so, where can a first-timer get some hot man meat? i live in europe.

  5. Picky by SimianOverlord · · Score: -1, Offtopic

    Hands up who else was annoyed by the constant and unnecessary use of italics that the writer uses in his introduction.

    Jackass.

    --
    Meine Schwester ist sehr, sehr reizvoll - Nietzsche
  6. Hanoi Rocks by millwall · · Score: -1, Offtopic

    I'm disappointed you didn't get Hanoi Rocks as background music when loading the webpage :(

  7. My right-hand side kidneys hurt by Anonymous Coward · · Score: -1, Offtopic
    Goddammit.

    My kidney hurts. I should stop drinking coffee like my doctor told me.

    Now, back to stuff that matters. Does anyone know where I can find crippleporn on the net?

    1. Re:My right-hand side kidneys hurt by Anonymous Coward · · Score: -1, Offtopic

      Try this and this. Hope this helps!

    2. Re:My right-hand side kidneys hurt by Anonymous Coward · · Score: -1, Offtopic

      This is also pretty good, though perhaps not quite what you're looking for.

  8. Re:.| First musical post! .|^ by Anonymous Coward · · Score: -1, Offtopic

    Nice sounds. Finally, a useful first post troll.

  9. Die nerds die! by Anonymous Coward · · Score: -1, Offtopic

    I'd just like to tell everyone that, as I'm typing this, I'm fucking this girl I just met (you can imagine the position). Now, this girl is beeeeeaaautiful, and she and I would just like to express our disdain at this time for you pathetic slashdotters who couldn't get laid if you were eggs in a hen's distended uterus.

    Well, since her back is to the screen, I'd just like to tell everyone how I'm going to treat her like shit, so that she can go to some guy like most of you, who she'll talk to platonically about how bad I treat her, while all the while the guy she's talking to is desiring her madly, but, being the sensitive slashdot type he is, is afraid to say anything. Then, having worked out her frustrations talking to the poor, sensitive slashdot type, she'll come back to me for some more good sex, and I'll treat her like shit again.

    Life's good.

    Love,
    -Brad Baillod

  10. Re:But what about... by edalytical · · Score: -1, Offtopic

    Here is Hello World! in Brainfuck.

    --
    Win a signed Stephen Carpenter ESP Guitar from the Deftones: http://def-tag.com/?r=0008781
  11. KOTOR by Lord+Bitman · · Score: -1, Offtopic

    Anyone else play "Knights of the Old Republic"?
    Seriously, what is up with that?

    --
    -- 'The' Lord and Master Bitman On High, Master Of All
  12. Re: your sig by dillon_rinker · · Score: 0, Offtopic

    A musician without the RIAA, is like a fish without a bicycle.

    Try this...A musician without the RIAA is like a fish without a hook.

    The RIAA is actually harmful. The original quote suggested simply that women didn't need men. (Also that women were slimy scaly smelly creatures and men were carefully engineered tools of great craftsmanship, but I digress...)