Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: partition of an array

by rir (Vicar)
on Apr 22, 2009 at 04:19 UTC ( [id://759178]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use List::Util qw{ sum };
    sub L() { 0}   # left
    ...
        my $score = abs( sum( @{ $ans[L] } ) - sum( @{ $ans[R] } ) );
        return $score,  $ans[L],  $ans[R];
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-23 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found