fix build_tree, binary_search_tree.cs

fix two figures
This commit is contained in:
krahets
2023-09-15 02:08:09 +08:00
parent af2aeb0897
commit cb9c14f5ff
13 changed files with 69 additions and 72 deletions
@@ -91,7 +91,7 @@ class BinarySearchTree {
cur = cur.left;
}
// 若无待删除节点,则直接返回
if (cur == null || pre == null)
if (cur == null)
return;
// 子节点数量 = 0 or 1
if (cur.left == null || cur.right == null) {