mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-05 11:41:22 +08:00
build
This commit is contained in:
@@ -102,8 +102,6 @@ comments: true
|
||||
```javascript title=""
|
||||
/* 链表节点类 */
|
||||
class ListNode {
|
||||
val;
|
||||
next;
|
||||
constructor(val, next) {
|
||||
this.val = (val === undefined ? 0 : val); // 节点值
|
||||
this.next = (next === undefined ? null : next); // 指向下一节点的引用
|
||||
@@ -1213,9 +1211,6 @@ comments: true
|
||||
```javascript title=""
|
||||
/* 双向链表节点类 */
|
||||
class ListNode {
|
||||
val;
|
||||
next;
|
||||
prev;
|
||||
constructor(val, next, prev) {
|
||||
this.val = val === undefined ? 0 : val; // 节点值
|
||||
this.next = next === undefined ? null : next; // 指向后继节点的引用
|
||||
|
||||
Reference in New Issue
Block a user