Update the page tree

This commit is contained in:
krahets
2023-04-16 16:38:04 +08:00
parent f5b8978330
commit 0ade8d87ad
2 changed files with 3 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ vector<vector<TreeNode *>> res;
/* 前序遍历 */
static void preOrder(TreeNode *root) {
// 剪枝
if (root == nullptr || root->val == 3) {
return;
}