mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 03:34:02 +08:00
Update problems/0450.删除二叉搜索树中的节点.md
This commit is contained in:
@ -685,7 +685,8 @@ impl Solution {
|
||||
},
|
||||
std::cmp::Ordering::Greater => node.left = Self::delete_node(node.left.clone(), key),
|
||||
}
|
||||
root.clone()
|
||||
drop(node);
|
||||
root
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user