one test case is showing wrong ans
Intersection of two linked list
Its not necessary that the elements will be in any particular sorted order. So there is no sense to compare the values of the pointers of the two lists.
Try to come up with some other approach. Else I will help you.
thanks
i’ll try with some other approach
Ok. Do tell me if you are able to get the correct answer.
i did it ,
using whlie loops.
thanks ,for the help