Intersection point two linked lists

My code is giving me wrong answer.
Please check…

hey @prashantverma.vn, pointer are not same but data is same at intersection point, change your line 54 from curr1==curr2 to curr1->data==curr2->data

1 Like

hey @prashantverma.vn, if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved