mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-17 05:55:16 +08:00
test(binary_search_tree): update test param
use param value 7, not 5, function test param value with param value in example picture as same.
This commit is contained in:
@@ -23,7 +23,7 @@ func TestBinarySearchTree(t *testing.T) {
|
|||||||
fmt.Println("二叉树的最小结点为:", node.Val)
|
fmt.Println("二叉树的最小结点为:", node.Val)
|
||||||
|
|
||||||
// 查找结点
|
// 查找结点
|
||||||
node = bst.Search(5)
|
node = bst.Search(7)
|
||||||
fmt.Println("查找到的结点对象为", node, ",结点值 =", node.Val)
|
fmt.Println("查找到的结点对象为", node, ",结点值 =", node.Val)
|
||||||
|
|
||||||
// 插入结点
|
// 插入结点
|
||||||
|
|||||||
Reference in New Issue
Block a user