From d639d946f07493d2fb87a0beea310162b1376c6f Mon Sep 17 00:00:00 2001 From: Logan Qiu Date: Tue, 24 Oct 2023 00:34:55 -0700 Subject: [PATCH] fix: Removed unnecessary JS & TS codes in linked_list.md (#852) * fix: Removed unnecessary JS & TS codes in linked_list.md * Update linked_list.md --------- Co-authored-by: Yudong Jin --- docs/chapter_array_and_linkedlist/linked_list.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/chapter_array_and_linkedlist/linked_list.md b/docs/chapter_array_and_linkedlist/linked_list.md index 2eb71a286..6b4277d48 100755 --- a/docs/chapter_array_and_linkedlist/linked_list.md +++ b/docs/chapter_array_and_linkedlist/linked_list.md @@ -96,8 +96,6 @@ ```javascript title="" /* 链表节点类 */ class ListNode { - val; - next; constructor(val, next) { this.val = (val === undefined ? 0 : val); // 节点值 this.next = (next === undefined ? null : next); // 指向下一节点的引用 @@ -546,9 +544,6 @@ ```javascript title="" /* 双向链表节点类 */ class ListNode { - val; - next; - prev; constructor(val, next, prev) { this.val = val === undefined ? 0 : val; // 节点值 this.next = next === undefined ? null : next; // 指向后继节点的引用