书写错误,null写成了nullptr
This commit is contained in:
parent
5974c82aea
commit
4fe73f30dc
|
|
@ -51,7 +51,7 @@ TreeNode* deleteNode(TreeNode* root, int key)
|
|||
遇到空返回,其实这也说明没找到删除的节点,遍历到空节点直接返回了
|
||||
|
||||
```
|
||||
if (root == nullptr) return root;
|
||||
if (root == null) return root;
|
||||
```
|
||||
|
||||
* 确定单层递归的逻辑
|
||||
|
|
|
|||
Loading…
Reference in New Issue