Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: Why no comments?

by BrowserUk (Pope)
on Feb 01, 2009 at 23:24 UTC ( #740601=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    
      # Reverse sort the set and partitions and insert sums
    
  2. or download this
      @$rs = reverse sort numerically @$rs ;
      @a   = ($sa, reverse sort numerically @a) ;
      @b   = ($sb, reverse sort numerically @b) ;
    
  3. or download this
      # Done -- return partitins in required order
    
  4. or download this
      if ($a[0] >= $b[0]) { return (\@a, \@b) ; }
                     else { return (\@b, \@a) ; } ;
    } ;
    
  5. or download this
        # Sort the callers array in-place
        @$set = sort{ $b<=>$a } @$set;
    ...
            : ([ $sumB, sort{ $b<=>$a } @partB ], [ $sumA, sort{ $b<=>$a }
    + @partA ])
        ;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2019-11-22 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (113 votes). Check out past polls.

    Notices?