mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-26 23:46:29 +08:00
build
This commit is contained in:
parent
0f3f55bf46
commit
ade482858a
1 changed files with 1 additions and 0 deletions
|
@ -290,6 +290,7 @@ comments: true
|
|||
```cpp title="preorder_find_constrained_paths.cpp"
|
||||
/* 前序遍历 */
|
||||
void preOrder(TreeNode *root) {
|
||||
// 剪枝
|
||||
if (root == nullptr || root->val == 3) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue