/*function ListNode(x){ this.val = x; this.next = null; }*/ function EntryNodeOfLoop(pHead) { // write code here const set = new Set(); let cur = pHead; while(cur){ if(set.has(cur)){ return cur } set.add(cur) cur = cur.next; } ...