-intersection-point-two-linked-lists

why this code is not passing all test cases??


see ur logic is correct the problem is
what u did would be right if these were an actual industrial scenario where this would have happened
however, in the question u r building to separate lists
so only their data can be judged, they will still be assigned different addresses in the actual system
so 40 for one ll is diff from 40 for the other ll
that is why i compared their data and not address

Thank you i understood.