Intersection of LL - RunError in one test case
Hello @abhishekchoudhary,
The reason for run-time error is:
int diff = m - n;
PROBLEM:
How are you so sure that the first list would be longer than another?
SOLUTION:
if m>n do:
m-n and move ahead in first list.
else
n-m and move ahead in the second list.
Hope, this would help.
Give a like if you are satisfied.