Fix the bst python code.

Fitune the chapters name.
This commit is contained in:
krahets
2023-06-30 05:09:17 +08:00
parent 9611a8f135
commit 98e797f1fc
2 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ class BinarySearchTree:
pre.right = child
else:
# 若删除节点为根节点,则重新指定根节点
self.__root = cur
self.__root = child
# 子节点数量 = 2
else:
# 获取中序遍历中 cur 的下一个节点