Getting a runtime error

question: intersection point of two linked lists

code: https://ide.codingblocks.com/s/571972

can you please explain the problem, thanks

Check now ->


Submit here ->
https://hack.codingblocks.com/app/contests/2174/1334/problem

same error coming up again


Getting accepted on my side, clear your cache memory . Do hard refresh and then try to submit. It will get accepted cause it is getting accepted on my side.

yes after hard refresh prob solved, but i have one more query that why we are :

comparing l1->data with l2->data , when we should compare their addresses

ideally this is right, i tried to submit with their data it got accepted whereas when i was comparing their address it wasn’t getting submitted. That’s why suggested the same.

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.