Add build script for Go and update Go codes.

This commit is contained in:
krahets
2023-02-09 04:45:06 +08:00
parent 12c085a088
commit e8c78f89f0
39 changed files with 391 additions and 1468 deletions
+2 -2
View File
@@ -41,13 +41,13 @@ func TestAVLTree(t *testing.T) {
fmt.Printf("\n查找到的结点对象为 %#v ,结点值 = %d \n", node, node.Val)
}
func testInsert(tree *avlTree, val int) {
func testInsert(tree *aVLTree, val int) {
tree.insert(val)
fmt.Printf("\n插入结点 %d 后,AVL 树为 \n", val)
PrintTree(tree.root)
}
func testRemove(tree *avlTree, val int) {
func testRemove(tree *aVLTree, val int) {
tree.remove(val)
fmt.Printf("\n删除结点 %d 后,AVL 树为 \n", val)
PrintTree(tree.root)