Find if two linked list have intersection point
Here is the link to the problem: Linked list intersection point. Problem Statement with Thought Process: There are two ways to do this: Using flag: In this method, we set a flag to 0 in each node. After traversal to the node, the flag is changed to 1. P1 comes doing this for first ll(linked list) and P2 comes doing this for second ll. If there is already a node with 1 as the flag, that means that is the intersection point....