mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 08:50:15 +08:00
Update 0669.修剪二叉搜索树.md
更正一个小错误
This commit is contained in:
@ -138,7 +138,7 @@ if (root->val < low) {
|
||||
root->left = trimBST(root->left, low, high);
|
||||
```
|
||||
|
||||
此时节点3的右孩子就变成了节点2,将节点0从二叉树中移除了。
|
||||
此时节点3的左孩子就变成了节点2,将节点0从二叉树中移除了。
|
||||
|
||||
最后整体代码如下:
|
||||
|
||||
|
Reference in New Issue
Block a user