Given two linked lists, find out IF they intersect.
Anonymous
Solution 1: Traverse the first linked list and mark visited nodes. Traverse 2nd linked list of, the moment we obtain a visited node that's the intersection point. solution2: If size of 2 linked list are different then traverse the bigger linked list to that extent where the remaining length would be same as the smaller one. Then start traversing both the list together. The moment comment address location obtained, that intersection point.
Check out your Company Bowl for anonymous work chats.