good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Golf: Arbitrary Alphabetical Sortingby ChemBoy (Priest) |
on May 09, 2001 at 20:42 UTC ( [id://79151]=note: print w/replies, xml ) | Need Help?? |
I got a head start on this one, since I gave a recursive solution in the original thread. But I've never golfed before, so this is likely to go down in flames quickly... I believe it scores 110 as is (somewhat golfed, but probably not optimally).
Update: Oof... difficulties is a nice way of putting it. A conditional statement fixes that, probably more cleanly than checking the string length repeatedly. Up to 125, I think--but then, I've already been clobbered.
If God had meant us to fly, he would *never* have give us the railroads. --Michael Flanders
In Section
Meditations
|
|