Determine if any subset of numbers sums exactly to a target value.
Constraints
Example
>>> subset_sum_exists([3, 34, 4, 12, 5, 2], 9) True >>> subset_sum_exists([3, 34, 4, 12, 5, 2], 30) False >>> subset_sum_exists([1, 2, 3], 0) True >>> subset_sum_exists([], 5) False
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints