Count the distinct ways to make a target amount using given coin denominations.
Constraints
Example
>>> coin_change_ways([1, 2, 5], 5) 4 >>> coin_change_ways([2], 3) 0 >>> coin_change_ways([3, 5, 7], 0) 1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints