Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Hanoi Challenge

by tilly (Archbishop)
on Oct 22, 2004 at 16:20 UTC ( [id://401551]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (disk): (peg from) -> (peg to)
    
  2. or download this
    $ ./hanoi.pl 3 3
    1: A -> B
    ...
    1: C -> A
    2: C -> B
    1: A -> B
    
  3. or download this
    #! /usr/bin/perl -w
    use strict;
    ...
    
    Ben Tilly (tilly on perlmonks)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://401551]
Approved by atcroft
Front-paged by gmax
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-03-28 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found