Intersection point two linked lists is showing error in one test case

please check my code and tell me where is the problem…

@jaankita2000 loops were stuck in infinite loop in case where there was no intersection point in the given 2 linkedlists. So, I changed your loops accordingly. Here’s the edited code.


Hope this helps.