mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 04:31:55 +08:00
Fix the code of preorder_traversal_iii_compact
This commit is contained in:
@ -20,6 +20,7 @@ void preOrder(TreeNode *root) {
|
||||
if (root->val == 7) {
|
||||
// 记录解
|
||||
res.push_back(path);
|
||||
path.pop_back();
|
||||
return;
|
||||
}
|
||||
preOrder(root->left);
|
||||
|
||||
Reference in New Issue
Block a user