This commit is contained in:
krahets
2023-02-07 17:17:14 +08:00
parent ecbf2d1560
commit 1ca5c731f7
19 changed files with 501 additions and 192 deletions

View File

@@ -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
```