Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Recursion: the Towers of Hanoi problem

by abitkin (Monk)
on Oct 20, 2004 at 16:52 UTC ( #400916=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    han('A','B','C',$ARGV[0]);
    ...
        print "Move disc $_[3] from $_[0] to $_[2]\n";
        han($_[1],$_[0],$_[2],$_[3]-1);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://400916]
help
Chatterbox?
[karlgoethebier]: provocation in 2: market garden
LanX Hi hi hi
[erix]: german provocations seem visible to germans, I guess it's an improvement
[LanX]: Free Gelderland!
[erix]: haha
[LanX]: Èrnem rulez!

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2018-04-24 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?