mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-10-06 05:39:30 +00:00
ruff
This commit is contained in:
parent
0975b24323
commit
ba224962ad
|
@ -60,7 +60,6 @@ def combination_sum(candidates: list, target: int) -> list:
|
|||
|
||||
if any(x < 0 for x in candidates):
|
||||
raise ValueError("All elements in candidates must be non-negative.")
|
||||
|
||||
backtrack(candidates, path, answer, target, 0)
|
||||
return answer
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user