mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-10 22:46:07 +00:00
Polish the chapter of array and linkedlist
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
/* 双向链表节点 */
|
||||
class ListNode {
|
||||
int val; // 节点值
|
||||
ListNode? next; // 后继节点引用(指针)
|
||||
ListNode? prev; // 前驱节点引用(指针)
|
||||
ListNode? next; // 后继节点引用
|
||||
ListNode? prev; // 前驱节点引用
|
||||
|
||||
ListNode(this.val, {this.next, this.prev});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user