Question DSA-LL-0068
HardWhich method finds the intersection node of two singly linked lists in O(m + n) time and O(1) space?
- A.
Walk both pointers; when one reaches the end, restart it at the other list's head; they meet at the intersection
- B.
Reverse both lists
- C.
Sign up free to see the answer and a step-by-step explanation.