refactor: Replace 结点 with 节点 (#452)

* Replace 结点 with 节点
Update the footnotes in the figures

* Update mindmap

* Reduce the size of the mindmap.png
This commit is contained in:
Yudong Jin
2023-04-09 04:32:17 +08:00
committed by GitHub
parent 3f4e32b2b0
commit 1c8b7ef559
395 changed files with 2056 additions and 2056 deletions

View File

@ -9,10 +9,10 @@ from collections import deque
class TreeNode:
""" Definition for a binary tree node """
def __init__(self, val: int = 0):
self.val: int = val # 点值
self.height: int = 0 # 点高度
self.left: TreeNode | None = None # 左子点引用
self.right: TreeNode | None = None # 右子点引用
self.val: int = val # 点值
self.height: int = 0 # 点高度
self.left: TreeNode | None = None # 左子点引用
self.right: TreeNode | None = None # 右子点引用
def list_to_tree(arr: list[int]) -> TreeNode | None:
""" Generate a binary tree with a list """