Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Algorithm to reduce the weight of a collection of bags

by ibm1620 (Friar)
on Jul 06, 2022 at 22:59 UTC ( #11145317=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use v5.36; # implies warnings
    ...
            sum(@$aref), $target;
        return $r;
    }
    
  2. or download this
    $ shrink 79
    Before:
    ...
      #5: {================} (16)
      #6: {================} (16)
    Weight 79, target=79
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2022-12-08 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?