Skip to content

Commit

Permalink
fix Qn0077 python indent
Browse files Browse the repository at this point in the history
  • Loading branch information
tlylt committed Jan 1, 2022
1 parent a936850 commit 0823020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion problems/0077.组合.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ class Solution:
def backtrack(n,k,startIndex):
if len(path) == k:
res.append(path[:])
return
return
for i in range(startIndex,n - (k - len(path)) + 2): #优化的地方
path.append(i) #处理节点
backtrack(n,k,i+1) #递归
Expand Down
2 changes: 1 addition & 1 deletion problems/0077.组合优化.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class Solution:
def backtrack(n,k,startIndex):
if len(path) == k:
res.append(path[:])
return
return
for i in range(startIndex,n-(k-len(path))+2): #优化的地方
path.append(i) #处理节点
backtrack(n,k,i+1) #递归
Expand Down

0 comments on commit 0823020

Please sign in to comment.