From 12bc134af8987659efeb76a973ffb3206ca9d59d Mon Sep 17 00:00:00 2001 From: Shuai Date: Sat, 23 Mar 2024 15:50:42 +0800 Subject: [PATCH] test --- problems/0039.组合总和.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/problems/0039.组合总和.md b/problems/0039.组合总和.md index 81558cc1..3b562f5a 100644 --- a/problems/0039.组合总和.md +++ b/problems/0039.组合总和.md @@ -311,7 +311,7 @@ class Solution: for i in range(startIndex, len(candidates)): if total + candidates[i] > target: - continue + break total += candidates[i] path.append(candidates[i]) self.backtracking(candidates, target, total, i, path, result) @@ -664,4 +664,3 @@ public class Solution -