Wrong Test Case from InterviewBit

programming
Tags: #<Tag:0x00007f2427ab12e0>

#1

Wrong Test Case for the following problem.

7 76 21 20 50 46 91 76
9 43 63 17 84 15 71 60 73 76
5 74 23 18 73 14

Expected Output (from InterviewBit):
74 -> 23 -> 18 -> 73 -> 14


#2

It says that the third line will have the nodes from which the intersection starts. You cannot put “76” in the first two lines as they match. Hope that helps. :slight_smile:


#3

Yeah I faced the same issue, its a wrong test case scenario.
Correct output should be : 76 -> 74 -> 23 -> 18 -> 73 -> 14