mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-07 23:04:55 +08:00
1. Add build script for Java.
2. Add height limitation for code blocks in extra.css. 3. Fix "节点" to "结点".
This commit is contained in:
@ -13,7 +13,7 @@ from include import *
|
||||
""" Driver Code """
|
||||
if __name__ == "__main__":
|
||||
""" 初始化二叉树 """
|
||||
# 初始化节点
|
||||
# 初始化结点
|
||||
n1 = TreeNode(val=1)
|
||||
n2 = TreeNode(val=2)
|
||||
n3 = TreeNode(val=3)
|
||||
@ -29,7 +29,7 @@ if __name__ == "__main__":
|
||||
|
||||
""" 插入与删除结点 """
|
||||
P = TreeNode(0)
|
||||
# 在 n1 -> n2 中间插入节点 P
|
||||
# 在 n1 -> n2 中间插入结点 P
|
||||
n1.left = P
|
||||
P.left = n2
|
||||
print("\n插入结点 P 后\n")
|
||||
|
Reference in New Issue
Block a user