Skip to content

Commit 81bd35f

Browse files
Update dynamic_programming/combination_sum_iv.py
Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com>
1 parent 1c35f5c commit 81bd35f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynamic_programming/combination_sum_iv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def combination_sum_iv_bottom_up(N: int, array: list[int], target: int) -> int:
8787
9
8888
"""
8989

90-
dp_array = [0 for _ in range(target + 1)]
90+
dp_array = [0] * (target + 1)
9191
dp_array[0] = 1
9292

9393
for i in range(1, target + 1):

0 commit comments

Comments
 (0)