Back to Questions

Intersection of Two Linked Lists

39.1K viewsAsked at Apple
Easy

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

Practice answering orally or with text to get instant AI feedback.

Practice with This Question