Doubt in intersection point-Mohit

Why i am getting run error in this code for this question?

@kalindiyadav5
Your code was absolutely correct. There was just a small mistake.

Include these two lines of code.
t1 = l1;
t2 = l2;

t1 and t2 had been set to NULL and thus you need to reinitialize them to the heads of the two linked lists.

If my explanation was able to resolve your query, please mark the doubt as resolved.