Skip to content

Commit

Permalink
fix: Removed unnecessary JS & TS codes in linked_list.md (krahets#852)
Browse files Browse the repository at this point in the history
* fix: Removed unnecessary JS & TS codes in linked_list.md

* Update linked_list.md

---------

Co-authored-by: Yudong Jin <[email protected]>
  • Loading branch information
logan-qiu and krahets authored Oct 24, 2023
1 parent 88a1e4a commit d639d94
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/chapter_array_and_linkedlist/linked_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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); // 指向下一节点的引用
Expand Down Expand Up @@ -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; // 指向后继节点的引用
Expand Down

0 comments on commit d639d94

Please sign in to comment.