Write a c program to find merge point of two linked lists. You’re given the pointer to the head nodes of two linked lists that merge together at some node. Find the node at which this merger happens. The two head nodes will be different and neither will be NULL.

For Ex. the below lists merge at node element 2. Your program should return merge point element, so if below lists are given as a input then output should be 2.

Merge Point of Two Linked Lists

c function to find Merge Point of Two Linked Lists

 

Ref:

The above solution is less efficient. You can write an efficient solution and test your code at..

https://www.hackerrank.com/challenges/find-the-merge-point-of-two-joined-linked-lists?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=24-hour-campaign