This commit is contained in:
krahets
2023-06-30 05:17:38 +08:00
parent b3686c5c2e
commit fc4406b5bd
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -804,7 +804,7 @@ comments: true
pre.right = child
else:
# 若删除节点为根节点,则重新指定根节点
self.__root = child
self.root = child
# 子节点数量 = 2
else:
# 获取中序遍历中 cur 的下一个节点