mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-04 19:20:52 +08:00
Polish the chapter of array and linkedlist
This commit is contained in:
@@ -9,8 +9,8 @@ namespace hello_algo.chapter_stack_and_queue;
|
||||
/* 双向链表节点 */
|
||||
public class ListNode {
|
||||
public int val; // 节点值
|
||||
public ListNode? next; // 后继节点引用(指针)
|
||||
public ListNode? prev; // 前驱节点引用(指针)
|
||||
public ListNode? next; // 后继节点引用
|
||||
public ListNode? prev; // 前驱节点引用
|
||||
|
||||
public ListNode(int val) {
|
||||
this.val = val;
|
||||
|
||||
Reference in New Issue
Block a user