in reply to Re^4: 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.

Bugger! Yes, you're right. Thanks for pointing that out (++ when the Vote Fairy next visits). That should, of course, be in @test_equal_subsets (8+4+4 = 7+6+3 = 16). Back to the drawing board ...

Update: Bug fixed. Node updated.

-- Ken

  • Comment on Re^5: Divide an array into 2 subsets to verify their sum is equal or not.
  • Download Code