I am trying to find the intersection pt. of 2 linked lists. I am getting a compiler error in this problem. Please help me out.
Compiler returns Run error
But what is the problem in comparing the data, can you please explain?
intersection is ensured only when two pointers are same right?
we have no restriction on data. any node can take any value ,it may be same or different
Okay got it, thanks. But the error is still there.
check 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.