牛客题霸——两个链表生成相加链表(Javascript)
一、题目链接https://www.nowcoder.com/practice/c56f6c70fb3f4849bc56e33ff2a50b6b?tpId=117二、思路链接https://www.bilibili.com/video/BV1Ey4y177ve?t=318三、具体代码/* * function ListNode(x){ * this.val = x; * this.next = null; * } *//** * * @param head1 ListN