思路——一步一步做 第1步:先不管random,按照普通链表复制 第2步:从头开始,处理random的复制 代码 function RandomListNode(x){ this.label = x; this.next = null; this.random = null; } function Clone(pHead) { // write code here // 第1步:先复制next。顺便把复制过的节点做记录 var pre1 = []; // 记录被复制过的节点 var pre2 = []; // 记录复制后的节点,与pre1...