Regarding intersection point two linked list problem


In this problem all the test cases get passes but it doesn’t get passes through other two test cases.
please implement the code where it is wrong.

hey @raushan.raman23011999, there may a case when prev or current pointing to last node of Linked list, At there you are accessing prev->next->data or current->next->data which is not possible to access.

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.