mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-13 11:09:48 +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:
@@ -5,8 +5,8 @@
|
||||
*/
|
||||
|
||||
public class ListNode {
|
||||
public var val: Int // 结点值
|
||||
public var next: ListNode? // 后继结点引用
|
||||
public var val: Int // 节点值
|
||||
public var next: ListNode? // 后继节点引用
|
||||
|
||||
public init(x: Int) {
|
||||
val = x
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
*/
|
||||
|
||||
public class TreeNode {
|
||||
public var val: Int // 结点值
|
||||
public var height: Int // 结点高度
|
||||
public var left: TreeNode? // 左子结点引用
|
||||
public var right: TreeNode? // 右子结点引用
|
||||
public var val: Int // 节点值
|
||||
public var height: Int // 节点高度
|
||||
public var left: TreeNode? // 左子节点引用
|
||||
public var right: TreeNode? // 右子节点引用
|
||||
|
||||
public init(x: Int) {
|
||||
val = x
|
||||
|
||||
Reference in New Issue
Block a user