One test case is giving run error
https://ide.codingblocks.com/s/66903
Intersection point two linked lists
@SanyamGarg I have corrected your code there is no need of reverse function and there is small modification in intersection function . you can refer this
Thanks
3rd test case is this
10
1 2 3 4 5 6 7 8 9 10
3
12 11 10
and it’s output is 10
my code also gives correct output for this test case, then why it shows run error when i submit it ?
Hi Sanyam, the test cases are not in the correct order, your code gives wrong answer for the following test case:
1
0
1
0