Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1

by Discipulus (Abbot)
on Feb 05, 2019 at 16:27 UTC ( #1229419=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Discipulus => sub{
        my @list = @input;
    ...
        Compare(\@list,\@output) or die "@list" if DO_CHECK;
    },
    
  2. or download this
    Discipulus3 => sub{
        my @list = sort {    
    ...
    Discipulus  46252/s          --        -14%        -46%
    Discipulus3 53805/s         16%          --        -38%
    Discipulus2 86380/s         87%         61%          --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1229419]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2021-10-21 03:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (82 votes). Check out past polls.

    Notices?