Intersection of Two Linked Lists
Easy
Linked List
Two singly linked lists may merge into a shared tail. The input gives each list as a private prefix followed by a common tail. Print the value of the first shared node, or null if the lists do not intersect.
Constraints
0 <= a, b, c <= 3 * 10^4 1 <= value <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.