// 链表结构 class ListNode { val; next = null constructor(value) { this.val = value this.next = null } }