Question DSA-LL-0018
HardTwo singly linked lists merge at some node. How can you find the intersection node in O(m + n) time and O(1) space?
- A.
Reverse both lists permanently
- B.
Compare every pair of nodes
- C.
Sign up free to see the answer and a step-by-step explanation.