Count distinct subsets that sum to a given target using dynamic programming.
Constraints
Example
>>> count_subset_sum([1, 2, 3], 3) 2 >>> count_subset_sum([1, 1, 1], 2) 3 >>> count_subset_sum([2, 4, 6], 5) 0 >>> count_subset_sum([], 0) 1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints