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

@ -14,7 +14,7 @@ func preOrder(root: TreeNode?) {
guard let root = root else {
return
}
// 访 -> ->
// 访 -> ->
list.append(root.val)
preOrder(root: root.left)
preOrder(root: root.right)
@ -25,7 +25,7 @@ func inOrder(root: TreeNode?) {
guard let root = root else {
return
}
// 访 -> ->
// 访 -> ->
inOrder(root: root.left)
list.append(root.val)
inOrder(root: root.right)
@ -36,7 +36,7 @@ func postOrder(root: TreeNode?) {
guard let root = root else {
return
}
// 访 -> ->
// 访 -> ->
postOrder(root: root.left)
postOrder(root: root.right)
list.append(root.val)
@ -55,16 +55,16 @@ enum BinaryTreeDFS {
/* */
list.removeAll()
preOrder(root: root)
print("\n前序遍历的点打印序列 = \(list)")
print("\n前序遍历的点打印序列 = \(list)")
/* */
list.removeAll()
inOrder(root: root)
print("\n中序遍历的点打印序列 = \(list)")
print("\n中序遍历的点打印序列 = \(list)")
/* */
list.removeAll()
postOrder(root: root)
print("\n后序遍历的点打印序列 = \(list)")
print("\n后序遍历的点打印序列 = \(list)")
}
}