Wrong Input for this question


#1

The input is wrong :slight_smile:
Your submission failed for the following input:
7 76 21 20 50 46 91 76
9 43 63 17 84 15 71 60 73 76
5 74 23 18 73 14

76 is written in non-overlapping part of both the inputs linked list.
Please correct it InterviewBit.


#3

The linked list are already merged:

A: 76->21->20->50->46->91->76 ->

intersection ->74->23->18->73->14

B: 43->63->17->84->15->71 ->60 ->73->76->

both of the linked list points to this overlapping section we have to return the pointer to 74 here, here 76 is also common but both of the linked list store 76 in different memory location they are look for intersection on memory location where they are same the location where 74 is stored in both linked list is same (same goes for remaining values followed by 74)
you cab find another version of this problem here: