Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by Eily (Monsignor)
on Feb 06, 2019 at 09:54 UTC ( #1229458=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @list = @input;
    @list = EXPR @list;
    
  2. or download this
    my @list = EXPR @input;
    
  3. or download this
    use warnings;
    use strict;
    use Benchmark 'cmpthese';
    ...
    NoOverwrite     61148/s 208%        39%   7%          --        -12%  
    +          -22%
    Discipulus2     69804/s 252%        59%  23%         14%          --  
    +          -11%
    Splice_FirstIdx 78838/s 297%        80%  38%         29%         13%  
    +            --
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2021-10-19 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (77 votes). Check out past polls.

    Notices?