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

Re^3: Divide array of integers into most similar value halves

by bduggan (Pilgrim)
on Sep 03, 2008 at 13:56 UTC ( [id://708761]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Divide array of integers into most similar value halves
in thread Divide array of integers into most similar value halves

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))

Replies are listed 'Best First'.
Re^4: Divide array of integers into most similar value halves
by Pepe (Sexton) on Sep 03, 2008 at 15:28 UTC
    You're right bduggan,
    Although it may be close enough for me
Re^4: Divide array of integers into most similar value halves
by johndageek (Hermit) on Sep 04, 2008 at 13:34 UTC
    Excellent point! Thanks!

    Enjoy!
    Dageek

Re^4: Divide array of integers into most similar value halves
by Anonymous Monk on Jan 07, 2009 at 15:09 UTC
    Re^4: Divide array of integers into most similar value halves
    by Anonymous Monk on Jan 07, 2009 at 15:10 UTC

    Log In?
    Username:
    Password:

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

    How do I use this?Last hourOther CB clients
    Other Users?
    Others examining the Monastery: (4)
    As of 2024-03-29 09:40 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found