Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: Divide array of integers into most similar value halvesby bduggan (Pilgrim) |
on Sep 03, 2008 at 13:56 UTC ( [id://708761]=note: print w/replies, xml ) | Need Help?? |
It'll fail for e.g. (3,3,2,2,2) and other sets where the top two numbers are odd, the rest even, and the ideal split is even. (and other cases too, e.g. (10,10,4,4,4,4,4))
In Section
Seekers of Perl Wisdom
|
|