All Problems

Intersection of Two Linked Lists

Easylinked-listExpected: O(N) time, O(1) spaceInterview Context
linked-list

Problem

Given the heads of two singly linked lists, return the node at which they intersect, or null.

Loading...