Why the result of the case [1,2,5] is true? I don't think it can be partitioned into two subset with same sum.
@tony0055 [1,2,5] should return false. This had been fixed.
I suggest you add [3,3,3,4,5] to the test case. My method get false on this case, but still can accept the test case.
@tony0055 Done. I have added your test case.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.