In one test case i am getting run-error in intersection point two linked list problem
link-https://ide.codingblocks.com/s/124671
Run error in one test case
Hello @rishu7865,
You have missed an important part of the output:
If the linked lists are not intersecting at any point then print -1.
Example:
3
1 2 3
2
4 5
Expected Output:
-1
Your Output:
Runtime Error
Hope, this would help.
Give a like, if you are satisfied.