mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 00:46:30 +08:00
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 <krahets@163.com>
This commit is contained in:
parent
88a1e4aaac
commit
d639d946f0
1 changed files with 0 additions and 5 deletions
|
@ -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; // 指向后继节点的引用
|
||||
|
|
Loading…
Reference in a new issue