What is the error in the code?

Intersection point of two linked list. My code is this----https://ide.codingblocks.com/s/328350


tep1 could also become NULL before tep2 if there is no intersection. I made the required changes. Please check it.

I have changed as you told, but get wrong answer?. Here is the modified code–https://ide.codingblocks.com/s/329194. Please check.

Please check my code which I sent you. And tell me if you are able to understand it.

I have got wrong answer with this code.


Please check this code.

https://hack.codingblocks.com/app/contests/1483/1334/problem----this is the question and I did not get correct answer.

This link opens up your course and I don’t have access to that. The question is Intersection point of two linked lists, right?

https://hack.codingblocks.com/app/contests/1483/1334/problem --please use this link. this is hackerblock link. Yes this problem is intersection of two nodes and I have to complete a function only. Please tell me if the link is open or not.


https://hack.codingblocks.com/app/contests/1483/505/problem

This code gives me correct answer.

Sir, there is two problems with same names.
https://hack.codingblocks.com/app/contests/1483/505/problem --this is your url which is solved and https://hack.codingblocks.com/app/contests/1483/1334/problem ----this is my url. In your link number is 505 after 1483 but in my url it is 1334 after 1483


This is the correct code for this question. But I don’t know why it gives TLE. It is giving TLE even if we return NULL or head1 in the first step. I guess there must be some internal error. I will report it to the team.

Ok sir, thank you…

You can mark your doubt as resolved now.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.