Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: partition of an arrayby f00li5h (Chaplain) |
on Mar 25, 2009 at 06:44 UTC ( [id://753032]=note: print w/replies, xml ) | Need Help?? |
Does not. Output:
You dropped the sort bit! ... some time passes ... Just snagging the biggest one and stuffing it in a sack works pretty well for the knapsack problem... and since this one was only 2 partitions it didn't do too bad ;) @_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;
In Section
Seekers of Perl Wisdom
|
|