mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-06 22:34:18 +08:00
Fix a comment in binary_search_tree code
This commit is contained in:
@ -77,7 +77,7 @@ class BinarySearchTree:
|
||||
else:
|
||||
cur = cur.left
|
||||
|
||||
# 插入节点 val
|
||||
# 插入节点
|
||||
node = TreeNode(num)
|
||||
if pre.val < num:
|
||||
pre.right = node
|
||||
|
Reference in New Issue
Block a user