I don’t understand what should be written in the return statement at the end of the function.Also if there is a problem in my code what is it?
Intersection point of 2 linked lists
hello @srshubhi398
reinitialise ur temp1 and temp2 ,after calculating lengths.
also

first compare temp1 and temp2 and then increment them if they are not equal
for ur refernce->https://ide.codingblocks.com/s/277841
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.
1 Like