链表结点 head,即头节点 function ListNode(val, next) { this.val = (val === undefined ? 0 : val) this.next = (n