P is for Practical | |
PerlMonks |
(Golf) Rangify Arrayby demerphq (Chancellor) |
on Sep 27, 2001 at 07:58 UTC ( [id://114993]=perlmeditation: print w/replies, xml ) | Need Help?? |
Hi All, Somone posted what seemed like a homework question here. I replied in a golfish format, and mentioned the fact to the CB. Chemboy suggested posting it as a real golf, wherupon CheeseLord stepped in and said that in a similer reply, which also called for Golf, tachyon had provided an even better answer than mine. Seemed like an interesting problem, so I present the Nth annual rangify function golf contest!
Problem
For instance, the list 1089,3,4,0,5,6,7,99,832,1087,831,1088 In order to keep it interesting answers in three catagories will be allowed, also code _must_ be strict safe.
Thanks and apologies (for mispelling his name) to CheeseLord for a couple of tips. But from what I've heard it wont help me much.... :-)
Yves
Back to
Meditations
|
|