Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

abitkin's scratchpad

by abitkin (Monk)
on Jun 02, 2004 at 16:47 UTC ( #359553=scratchpad: print w/ replies, xml ) Need Help??

Tower of Hanoi. Goal: least number of chars possible while preserving the whole line being printed.
#!/usr/bin/perl sub a{my$l=pop;a(@_[0,2,1],--$l)."Move disc $l from $_[0] to $_[2] ".a(@_[1,0,2],$l)if$l>0;}print a('A'..'C',shift);
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2015-08-31 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (364 votes), past polls