摘要:
题目 解决 思路一:1.使用两个数组,将链表断开,push进入数组中,并构建一个反向数组。2.循环两个数组的前半部分元素,依次重组链表。(蠢办法) 题目要求not modify the values in the list's nodes, only nodes itself may be chan 阅读全文
摘要:
原来简洁有逻辑的代码会为javaScrip提交大大性能 在leetcode上遇到下面的题目 You are given two non-empty linked lists representing two non-negative integers. The digits are stored i 阅读全文