Problem 160 · Easy

Intersection of Two Linked Lists

Two pointers that swap to the other list's head on reaching null — they meet at the intersection after equal total distance.

Open the interactive visualisation