Fix the return type of binary search tree and avl tree

This commit is contained in:
krahets
2023-04-14 05:47:20 +08:00
parent 9c9c8b7574
commit f7ae9c8a02
24 changed files with 247 additions and 451 deletions

View File

@ -24,7 +24,7 @@ func TestBinarySearchTree(t *testing.T) {
fmt.Println("查找到的节点对象为", node, ",节点值 =", node.Val)
// 插入节点
node = bst.insert(16)
bst.insert(16)
fmt.Println("\n插入节点后 16 的二叉树为:")
bst.print()