https://ide.codingblocks.com/s/324140 you mean using using two for loops? i tried using logic which was given in the video . like first calculate the lenth and then check which one is greater sub them and then move slow and fast pointer. pls check this logic as well which is written in my code or otherwise i will opt for loop method
Intersection of linked list
Hey @shrutikatyal
There is only one small correction in your code ,i.e
d3=abs(d1-d2);
Rest of the code is good.
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.