mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-24 10:33:34 +08:00
Fix a comment in binary_search_tree code
This commit is contained in:
@@ -89,7 +89,7 @@ void insert(binarySearchTree *bst, int num) {
|
||||
cur = cur->left;
|
||||
}
|
||||
}
|
||||
// 插入节点 val
|
||||
// 插入节点
|
||||
TreeNode *node = newTreeNode(num);
|
||||
if (pre->val < num) {
|
||||
pre->right = node;
|
||||
|
||||
Reference in New Issue
Block a user