Daily iOS
CS fundamentals and algorithmsZoom

Linked list intersection

Two singly linked lists may share their tail nodes. How do you find the first node they actually share (the same instance, not a node with an equal value) in O(n) time and O(1) extra space?

Submit