# Find Intersection Point in Two Linked List

Objective: Given Two linked list, check whether both list intersect each other, if yes then find the starting node of the intersection.

Intersection point means end of one linked list is linked with some node in another linked list and it forms a Y shape.

Output: Intersection Node or point

Example:

Approach:

• Find the length of both the linked lists say : a_len and b_len
• Find the lenDiff = (a_len ~ b_len)
• Traverse the longer linked list by lenDiff
• Now traverse both the lists at the same time
• Check whether nodes are same, if yes then we have found the intersection point
• If we reach the end of the link lists then there is no intersection point.

Trick Solution:

Time Complexity : O(n) , Space Complexity : O(1)
Complete Code:

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.

```List A :