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

@@ -8,18 +8,18 @@ import utils
/* */
func levelOrder(root: TreeNode) -> [Int] {
//
//
var queue: [TreeNode] = [root]
//
var list: [Int] = []
while !queue.isEmpty {
let node = queue.removeFirst() //
list.append(node.val) //
list.append(node.val) //
if let left = node.left {
queue.append(left) //
queue.append(left) //
}
if let right = node.right {
queue.append(right) //
queue.append(right) //
}
}
return list
@@ -37,6 +37,6 @@ enum BinaryTreeBFS {
/* */
let list = levelOrder(root: node)
print("\n层序遍历的点打印序列 = \(list)")
print("\n层序遍历的点打印序列 = \(list)")
}
}