Dsa
Linked List
Medium
Find Intersection Point of Two Linked Lists
You are given two linked lists that may or may not intersect at some node. Each linked list is represented by space-separated integers ending with -1. Find the intersection point (the node where both lists merge), if any. If they do not intersect, output -1. Note: The lists are guaranteed to be linear before the intersection point.
Example:
Input:
1 2 3 -1
4 5 3 -1
Output:
3
Key concepts
linked_listintersectionpointers
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now