Search⌘ K
AI Features

Intersection of Two Linked Lists

Intersection of Two Linked Lists compares two singly linked lists and asks for the shared node where they first meet, or NULL if they never share a node in memory.

Statement

You are given the heads of two singly linked lists, headA and headB, to determine whether the two lists intersect. If they intersect, return the node ...