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

Re: Friday Golf: All 2-digit combinations

by Rich36 (Chaplain)
on Sep 26, 2003 at 13:46 UTC ( #294417=note: print w/ replies, xml ) Need Help??


in reply to Friday Golf: All 2-digit combinations

I'm certainly not going to win with a score of 132 (actually 130 minus the two strokes for not using(00..99)), but it's a different way to do it. I never was much good at golf anyway...

$n{sprintf("%02d", $c++)}=1 until($c>99);for(keys %n){delete $n{$_}if( +$n{reverse($_)}&&reverse($_)!=$_)}print join('',sort keys %n)

«Rich36»


Comment on Re: Friday Golf: All 2-digit combinations
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://294417]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2015-07-30 02:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls