mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-10 04:06:51 +08:00
书写错误,null写成了nullptr
This commit is contained in:
@ -51,7 +51,7 @@ TreeNode* deleteNode(TreeNode* root, int key)
|
||||
遇到空返回,其实这也说明没找到删除的节点,遍历到空节点直接返回了
|
||||
|
||||
```
|
||||
if (root == nullptr) return root;
|
||||
if (root == null) return root;
|
||||
```
|
||||
|
||||
* 确定单层递归的逻辑
|
||||
|
Reference in New Issue
Block a user