build
This commit is contained in:
parent
dede472c45
commit
87870fcf60
@ -20,15 +20,12 @@ comments: true
|
|||||||
if (root == null) {
|
if (root == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 尝试
|
|
||||||
if (root.val == 7) {
|
if (root.val == 7) {
|
||||||
// 记录解
|
// 记录解
|
||||||
res.add(root);
|
res.add(root);
|
||||||
}
|
}
|
||||||
preOrder(root.left);
|
preOrder(root.left);
|
||||||
preOrder(root.right);
|
preOrder(root.right);
|
||||||
// 回退
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -153,7 +150,6 @@ comments: true
|
|||||||
pre_order(root.right)
|
pre_order(root.right)
|
||||||
# 回退
|
# 回退
|
||||||
path.pop()
|
path.pop()
|
||||||
return
|
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "Go"
|
=== "Go"
|
||||||
@ -286,7 +282,6 @@ comments: true
|
|||||||
pre_order(root.right)
|
pre_order(root.right)
|
||||||
# 回退
|
# 回退
|
||||||
path.pop()
|
path.pop()
|
||||||
return
|
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "Go"
|
=== "Go"
|
||||||
|
Loading…
Reference in New Issue
Block a user