Skip to content

Commit

Permalink
Update 0669.修剪二叉搜索树.md
Browse files Browse the repository at this point in the history
更正一个小错误
  • Loading branch information
ccqstark authored Nov 16, 2021
1 parent bcbb8b9 commit 0a31eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/0669.修剪二叉搜索树.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ if (root->val < low) {
root->left = trimBST(root->left, low, high);
```
此时节点3的右孩子就变成了节点2,将节点0从二叉树中移除了。
此时节点3的左孩子就变成了节点2,将节点0从二叉树中移除了。
最后整体代码如下:
Expand Down

0 comments on commit 0a31eaa

Please sign in to comment.