mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-10 06:26:08 +00:00
fix build_tree, binary_search_tree.cs
fix two figures
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user