mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 04:31:55 +08:00
Fix a comment in binary_search_tree code
This commit is contained in:
@ -80,7 +80,7 @@ class BinarySearchTree {
|
||||
cur = cur?.left
|
||||
}
|
||||
}
|
||||
// 插入节点 val
|
||||
// 插入节点
|
||||
let node = TreeNode(x: num)
|
||||
if pre!.val < num {
|
||||
pre?.right = node
|
||||
|
||||
Reference in New Issue
Block a user