refactor: Replace 结点 with 节点 (#452)

* Replace 结点 with 节点
Update the footnotes in the figures

* Update mindmap

* Reduce the size of the mindmap.png
This commit is contained in:
Yudong Jin
2023-04-09 04:32:17 +08:00
committed by GitHub
parent 3f4e32b2b0
commit 1c8b7ef559
395 changed files with 2056 additions and 2056 deletions

View File

@@ -15,27 +15,27 @@ func TestBinarySearchTree(t *testing.T) {
fmt.Println("\n初始化的二叉树为:")
bst.print()
// 获取根
// 获取根
node := bst.getRoot()
fmt.Println("\n二叉树的根点为:", node.Val)
fmt.Println("\n二叉树的根点为:", node.Val)
// 查找
// 查找
node = bst.search(7)
fmt.Println("查找到的点对象为", node, "点值 =", node.Val)
fmt.Println("查找到的点对象为", node, "点值 =", node.Val)
// 插入
// 插入
node = bst.insert(16)
fmt.Println("\n插入点后 16 的二叉树为:")
fmt.Println("\n插入点后 16 的二叉树为:")
bst.print()
// 删除
// 删除
bst.remove(1)
fmt.Println("\n删除点 1 后的二叉树为:")
fmt.Println("\n删除点 1 后的二叉树为:")
bst.print()
bst.remove(2)
fmt.Println("\n删除点 2 后的二叉树为:")
fmt.Println("\n删除点 2 后的二叉树为:")
bst.print()
bst.remove(4)
fmt.Println("\n删除点 4 后的二叉树为:")
fmt.Println("\n删除点 4 后的二叉树为:")
bst.print()
}