mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-04 03:00:06 +08:00
Update the page tree
This commit is contained in:
@@ -11,6 +11,7 @@ vector<vector<TreeNode *>> res;
|
||||
|
||||
/* 前序遍历 */
|
||||
static void preOrder(TreeNode *root) {
|
||||
// 剪枝
|
||||
if (root == nullptr || root->val == 3) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user