mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +08:00
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:
@@ -78,8 +78,8 @@
|
||||
""" 类 """
|
||||
class Node:
|
||||
def __init__(self, x: int):
|
||||
self.val: int = x # 结点值
|
||||
self.next: Optional[Node] = None # 指向下一结点的指针(引用)
|
||||
self.val: int = x # 节点值
|
||||
self.next: Optional[Node] = None # 指向下一节点的指针(引用)
|
||||
|
||||
""" 函数 """
|
||||
def function() -> int:
|
||||
@@ -131,8 +131,8 @@
|
||||
val;
|
||||
next;
|
||||
constructor(val) {
|
||||
this.val = val === undefined ? 0 : val; // 结点值
|
||||
this.next = null; // 指向下一结点的引用
|
||||
this.val = val === undefined ? 0 : val; // 节点值
|
||||
this.next = null; // 指向下一节点的引用
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,8 +159,8 @@
|
||||
val: number;
|
||||
next: Node | null;
|
||||
constructor(val?: number) {
|
||||
this.val = val === undefined ? 0 : val; // 结点值
|
||||
this.next = null; // 指向下一结点的引用
|
||||
this.val = val === undefined ? 0 : val; // 节点值
|
||||
this.next = null; // 指向下一节点的引用
|
||||
}
|
||||
}
|
||||
|
||||
@@ -890,7 +890,7 @@ $$
|
||||
|
||||
### 指数阶 $O(2^n)$
|
||||
|
||||
指数阶常见于二叉树。高度为 $n$ 的「满二叉树」的结点数量为 $2^n - 1$ ,占用 $O(2^n)$ 空间。
|
||||
指数阶常见于二叉树。高度为 $n$ 的「满二叉树」的节点数量为 $2^n - 1$ ,占用 $O(2^n)$ 空间。
|
||||
|
||||
=== "Java"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user