From ff6022796cbd3887fe7e2405a352e65835af8e73 Mon Sep 17 00:00:00 2001 From: krahets Date: Mon, 27 Feb 2023 21:01:25 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20=E7=BB=93=E6=9E=84=E4=BD=93=20and=20?= =?UTF-8?q?=E7=B1=BB.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/chapter_array_and_linkedlist/linked_list.md | 6 +++--- docs/chapter_tree/binary_tree.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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