Skip to content

Commit a51fe87

Browse files
committed
Remove unecessary code
1 parent 4334633 commit a51fe87

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Sprint-2/improve_with_caches/making_change/making_change.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ def ways_to_make_change(total: int) -> int:
1313
def ways_to_make_change_helper(total: int, coins: List[int]) -> int:
1414
"""
1515
Helper function for ways_to_make_change to avoid exposing the coins parameter to callers.
16-
"""
17-
if total == 0 or len(coins) == 0:
18-
return 0
19-
16+
"""
2017
ways = [0] * (total + 1)
2118
ways[0] = 1
2219

0 commit comments

Comments
 (0)