mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-12 09:32:02 +08:00
build
This commit is contained in:
@@ -197,7 +197,7 @@ comments: true
|
||||
|
||||
```python title="binary_tree.py"
|
||||
""" 初始化二叉树 """
|
||||
# 初始化节点
|
||||
# 初始化结点
|
||||
n1 = TreeNode(val=1)
|
||||
n2 = TreeNode(val=2)
|
||||
n3 = TreeNode(val=3)
|
||||
@@ -343,7 +343,7 @@ comments: true
|
||||
# 在 n1 -> n2 中间插入结点 P
|
||||
n1.left = p
|
||||
p.left = n2
|
||||
# 删除节点 P
|
||||
# 删除结点 P
|
||||
n1.left = n2
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user