hey! only one test case is passed. please help me to find error in my code. thank you.
Intersection point in linked lists
hey Apoorvee, please make following changes in your code
- in line no 14, pass head with call by reference not call by value.
- in line no 31, make it while(n–)
- in line no 54 and 68,it should be head=head2->next instead of head2=head->next.
https://ide.codingblocks.com/s/80160 I have done the required changes,… still i am failing 2 test cases… kindly help
Hey @apoorveesharma2308, you have not made the change that I mentioned in point.
I have made the changes and mentioned them as comment.
check this https://ide.codingblocks.com/s/80881