Skip to content

Commit 1466d76

Browse files
committed
Fix dynamic_programming/combination_sum_iv.py
1 parent 6f439de commit 1466d76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dynamic_programming/combination_sum_iv.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"""
2323

2424

25-
def combination_sum_iv(n: int, array: list[int], target: int) -> int:
25+
def combination_sum_iv(array: list[int], target: int) -> int:
2626
"""
2727
Function checks the all possible combinations, and returns the count
2828
of possible combination in exponential Time Complexity.
2929
30-
>>> combination_sum_iv(3, [1,2,5], 5)
30+
>>> combination_sum_iv([1,2,5], 5)
3131
9
3232
"""
3333

@@ -41,13 +41,13 @@ def count_of_possible_combinations(target: int) -> int:
4141
return count_of_possible_combinations(target)
4242

4343

44-
def combination_sum_iv_dp_array(n: int, array: list[int], target: int) -> int:
44+
def combination_sum_iv_dp_array(array: list[int], target: int) -> int:
4545
"""
4646
Function checks the all possible combinations, and returns the count
4747
of possible combination in O(N^2) Time Complexity as we are using Dynamic
4848
programming array here.
4949
50-
>>> combination_sum_iv_dp_array(3, [1,2,5], 5)
50+
>>> combination_sum_iv_dp_array([1,2,5], 5)
5151
9
5252
"""
5353

0 commit comments

Comments
 (0)