416. Partition Equal Subset Sum
Practice Partition Equal Subset Sum for free on NudgeCode: Medium, Dynamic Programming pattern. Write it in Python or JavaScript, run the tests in your browser, and ask for a hint when you are stuck.
Return whether the numbers in nums can be split into two groups with the same sum. Every number goes into exactly one group.
Example
nums = [1,5,11,5] -> true ([1,5,5] and [11])
nums = [1,2,3,5] -> false
Constraints
- 1 <= nums.length <= 200
- 1 <= nums[i] <= 100