mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 04:31:55 +08:00
test(binary_search_tree): update test param all the language
use param value 7, not 5. function test param value with param value in example picture as same.
This commit is contained in:
@ -145,7 +145,7 @@ if __name__ == "__main__":
|
||||
print_tree(bst.root)
|
||||
|
||||
# 查找结点
|
||||
node = bst.search(5)
|
||||
node = bst.search(7)
|
||||
print("\n查找到的结点对象为: {},结点值 = {}".format(node, node.val))
|
||||
|
||||
# 插入结点
|
||||
|
||||
Reference in New Issue
Block a user