This commit is contained in:
maheshwari 2023-10-09 22:17:57 +05:30
parent 0975b24323
commit ba224962ad

View File

@ -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