Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1by Discipulus (Canon) |
on Feb 05, 2019 at 20:48 UTC ( [id://1229437]=note: print w/replies, xml ) | Need Help?? |
Hello hdb > version will be very slow if there are only negative numbers... ;) eh eh, you are right but the check does not slow it at all..
update: more test cases.. more checks! L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|