in reply to Re: Friday Golf: All 2-digit combinations (wrong!)
in thread Friday Golf: All 2-digit combinations
62? (Does anyone have a neat one liner for verifying this? trying to check the results is doing my eyes in:)
$_=$n='00';/$n/ or$_.=$n and s/(.)\1\1/$1$1/while$n++<99;print |
123456789 123456789 123456789 123456789 123456789 123456789 123 |
58!
$_=$n='00';/$n/ or$_.=$n,s/(.)(?=\1\1)//while$n++<99;print |
123456789 123456789 123456789 123456789 123456789 123456789 123 |
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re3: Friday Golf: (I think I got it *this* time)
by dragonchild (Archbishop) on Sep 26, 2003 at 15:09 UTC | |
Re^3: Friday Golf: (I think I got it *this* time)
by PhilHibbs (Hermit) on Sep 26, 2003 at 14:11 UTC |
In Section
Meditations