This commit is contained in:
FizzerYu
2022-05-11 01:17:08 +08:00
committed by GitHub
parent adac0c7ea2
commit c62d518e14

View File

@ -279,7 +279,7 @@ class Solution:
root.right = self.insertIntoBST(root.right, val)
# 返回更新后的以当前root为根节点的新树
return roo
return root
```
**递归法** - 无返回值