Loading problem…
Given a nonempty array of positive integers nums, return whether its elements can be split into two subsets with equal sums. Every element must belong to exactly one subset. Each array position can be used once; equal values at different positions are separate elements.
Return a boolean, not the subsets themselves. The original order does not matter, and the input must remain unchanged.
Example 1:
Example 2:
Example 3: