Intersection of Two Linked Lists

Given the heads of two singly linked lists, headA and headB, return the first node at which the two lists intersect. Return None if they do not intersect.

An intersection means that both lists ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: