Intersection of 2 ll is logically wrong question

As in the testcase inputting format the two linked list actually never intersect.
Only there value is equal at some point of time where we think they are intersecting.
for eg the case
1 2 3 4 5 6
3 4 5 6
the program can print 3 as well but actually we don’t know where the 2 ll actually meets

Yes, the linked lists never actually intersect. The user is supposed to print the common number in both the linked lists. The team is working on resolving this issue. In the meanwhile, you try and output the common element of the 2 linked lists.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Yes you had. Thanks.
Please also help me in this circular LL question. The code is working fine on other IDE but there is run time error here

I’d have to request you to post this on the ask doubt section.
Thank you.

Already posted if you can tag someone or help with it

Someone will soon look into it. The thing is all the TAs are having exams in their respective colleges, that’s why there’s a little delay.