Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Friday Golf: All 2-digit combinations

by Rich36 (Chaplain)
on Sep 26, 2003 at 13:46 UTC ( [id://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»

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-25 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found