Check if a list of positive integers can be split into two subsets with equal sum.
Constraints
Example
>>> can_partition([2, 2]) True >>> can_partition([1, 5, 11, 5]) True >>> can_partition([1, 2, 3, 5]) False
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints