Suppose there are two singly linked lists both of which intersect at some point and become a single linked list.
The head or start pointers of both the lists are kno
This takes O(M+N) time and O(1) space, where M and N are the total length of the linked lists. Maybe inefficient if the common part is very long (i.e. M,N >> m,n)
Edit: See more here.