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

@@ -17,7 +17,7 @@ public class binary_tree_dfs
void preOrder(TreeNode? root)
{
if (root == null) return;
// 访问优先级:根点 -> 左子树 -> 右子树
// 访问优先级:根点 -> 左子树 -> 右子树
list.Add(root.val);
preOrder(root.left);
preOrder(root.right);
@@ -27,7 +27,7 @@ public class binary_tree_dfs
void inOrder(TreeNode? root)
{
if (root == null) return;
// 访问优先级:左子树 -> 根点 -> 右子树
// 访问优先级:左子树 -> 根点 -> 右子树
inOrder(root.left);
list.Add(root.val);
inOrder(root.right);
@@ -37,7 +37,7 @@ public class binary_tree_dfs
void postOrder(TreeNode? root)
{
if (root == null) return;
// 访问优先级:左子树 -> 右子树 -> 根
// 访问优先级:左子树 -> 右子树 -> 根
postOrder(root.left);
postOrder(root.right);
list.Add(root.val);
@@ -54,14 +54,14 @@ public class binary_tree_dfs
list.Clear();
preOrder(root);
Console.WriteLine("\n前序遍历的点打印序列 = " + string.Join(",", list.ToArray()));
Console.WriteLine("\n前序遍历的点打印序列 = " + string.Join(",", list.ToArray()));
list.Clear();
inOrder(root);
Console.WriteLine("\n中序遍历的点打印序列 = " + string.Join(",", list.ToArray()));
Console.WriteLine("\n中序遍历的点打印序列 = " + string.Join(",", list.ToArray()));
list.Clear();
postOrder(root);
Console.WriteLine("\n后序遍历的点打印序列 = " + string.Join(",", list.ToArray()));
Console.WriteLine("\n后序遍历的点打印序列 = " + string.Join(",", list.ToArray()));
}
}