Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Think about Loose Coupling
 
PerlMonks  

Re: Re: Friday Golf: All 2-digit combinations

by BrowserUk (Pope)
on Sep 26, 2003 at 18:58 UTC ( #294525=note: print w/ replies, xml ) Need Help??


in reply to Re: Friday Golf: All 2-digit combinations
in thread Friday Golf: All 2-digit combinations

56! {He he}

$_=9;for$a(0..9){for$b($a..9){$_.=$a.$b}s/$a$a/$a/}print

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.


Comment on Re: Re: Friday Golf: All 2-digit combinations
Download Code
Re: Re: Re: Friday Golf: All 2-digit combinations
by LTjake (Prior) on Sep 26, 2003 at 19:49 UTC

    53.

    for$a(9,0..9){for$b($a..9){$_.=$a.$b}s/$a$a/$a/}print

    --
    "To err is human, but to really foul things up you need a computer." --Paul Ehrlich

      Scratch! Too eager:)


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
      If I understand your problem, I can solve it! Of course, the same can be said for you.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-04-20 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls