diff --git a/docs/chapter_array_and_linkedlist/linked_list.md b/docs/chapter_array_and_linkedlist/linked_list.md index ac887baba..cf169b707 100755 --- a/docs/chapter_array_and_linkedlist/linked_list.md +++ b/docs/chapter_array_and_linkedlist/linked_list.md @@ -63,7 +63,7 @@ === "JavaScript" ```javascript title="" - /* 链表结点结构体 */ + /* 链表结点类 */ class ListNode { val; next; @@ -77,7 +77,7 @@ === "TypeScript" ```typescript title="" - /* 链表结点结构体 */ + /* 链表结点类 */ class ListNode { val: number; next: ListNode | null; @@ -595,7 +595,7 @@ === "C++" ```cpp title="" - /* 链表结点结构体 */ + /* 双向链表结点结构体 */ struct ListNode { int val; // 结点值 ListNode *next; // 指向后继结点的指针(引用) diff --git a/docs/chapter_tree/binary_tree.md b/docs/chapter_tree/binary_tree.md index 2c909e3e2..aaf8e218f 100644 --- a/docs/chapter_tree/binary_tree.md +++ b/docs/chapter_tree/binary_tree.md @@ -40,7 +40,7 @@ === "Go" ```go title="" - /* 链表结点类 */ + /* 链表结点结构体 */ type TreeNode struct { Val int Left *TreeNode