Don't ask to ask, just ask | |
PerlMonks |
Re: (Golf) Keysortby chipmunk (Parson) |
on Feb 18, 2002 at 05:51 UTC ( [id://146105]=note: print w/replies, xml ) | Need Help?? |
Here's my lexicographic solution, which comes in at 89 characters (including the call to sort):
If I've understood the hole properly, the definitions of "integer" and "starting with an integer" are a bit tricky. '0' is an integer, but '00' isn't; '0a' starts with an integer, but '00a' doesn't. Thus, '0', '1', '00', 'adam' would be sorted in that order. Have I got that right?
In Section
Meditations
|
|