fix Qn0077 python indent

This commit is contained in:
tlylt
2022-01-01 11:17:07 +08:00
parent a936850fb7
commit 082302078b
2 changed files with 2 additions and 2 deletions

View File

@ -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) #递归

View File

@ -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) #递归