Intersection of linked list

each approach is showing TLE,what to do

Hey @argus see if this is 2 merged linked list and bigger linked list has length 6 and shorter 5 then first find the difference which in this case is 1, the linked list which is bigger in size . In that linked list travel to that much node , here you will reach at 10th node.
Now one pointer is at 10th node and another is at 5th node, now increment node by node and return that node which proves ptr1==ptr2


Attaching code for reference

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.