http://www.perlmonks.org?node_id=1031731


in reply to Re: Divide an array into 2 subsets to verify their sum is equal or not.
in thread Divide an array into 2 subsets to verify their sum is equal or not.

It does not work for [ 8, 4, 4, 7, 6, 3 ]. This is an NP-complete problem http://en.wikipedia.org/wiki/Knapsack_problem. Which means there is no (known) solution in polynomial time. Applies to BrowserUK's solution as well.