Count the number of subsets of a list that sum to a target value.
Constraints
Example
>>> count_subsets([1, 2, 3], 3) 2 >>> count_subsets([1, 1, 1], 2) 3 >>> count_subsets([1, 2, 3], 100) 0 >>> count_subsets([-1, 1, 0], 0) 4
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints