fix Qn0077 & Qn0216 python indent errors

This commit is contained in:
tlylt
2022-01-01 11:38:38 +08:00
parent 082302078b
commit eb94c291b2
3 changed files with 4 additions and 5 deletions

View File

@ -427,8 +427,8 @@ class Solution:
path.append(i) #处理节点 path.append(i) #处理节点
backtrack(n,k,i+1) #递归 backtrack(n,k,i+1) #递归
path.pop() #回溯,撤销处理的节点 path.pop() #回溯,撤销处理的节点
backtrack(n,k,1) backtrack(n,k,1)
return res return res
``` ```

View File

@ -187,8 +187,8 @@ class Solution:
path.append(i) #处理节点 path.append(i) #处理节点
backtrack(n,k,i+1) #递归 backtrack(n,k,i+1) #递归
path.pop() #回溯,撤销处理的节点 path.pop() #回溯,撤销处理的节点
backtrack(n,k,1) backtrack(n,k,1)
return res return res
``` ```
Go Go
```Go ```Go

View File

@ -323,7 +323,6 @@ class Solution:
self.backtracking(k, n, i + 1) self.backtracking(k, n, i + 1)
self.path.pop() self.path.pop()
self.sum_now -= i self.sum_now -= i
return
``` ```
## Go ## Go