Back to Question

Intersection of Two Linked Lists

Question Explain

Given the heads of two singly linked lists, return the node at which the two lists intersect. Solve in $O(m+n)$ time and $O(1)$ extra memory.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.