Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
We can figure out what target each subset must sum to. Then, let's recursively search, where at each call to our function, we choose which of k subsets the next value will join.