Partition Equal Subset Sum
Given a non-empty array of non-negative integers, determine if it can be partitioned into two subsets such that the sum of elements in both subsets is equal.
Every element must land in exactly one of the two subsets; neither subset may be skipped over or reused.
nums = [3, 4, 7]
true
The total is 14, so each side must sum to 7. Putting [3, 4] on one side and [7] on the other gives 7 and 7.
nums = [1, 2, 3, 5]
false
The total is 11. An odd total cannot be halved into two whole-number sums, so no partition exists regardless of which elements are chosen.
1 <= nums.length <= 2000 <= nums[i] <= 100