mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +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:
@@ -131,7 +131,7 @@ int main() {
|
||||
PrintUtil::printTree(bst->getRoot());
|
||||
|
||||
/* 查找结点 */
|
||||
TreeNode* node = bst->search(5);
|
||||
TreeNode* node = bst->search(7);
|
||||
cout << endl << "查找到的结点对象为 " << node << ",结点值 = " << node->val << endl;
|
||||
|
||||
/* 插入结点 */
|
||||
|
||||
Reference in New Issue
Block a user