Intersection of two link list


do you think this approach is correct

@royprincejmp this not right approach.
To solve this question first find the difference in the length of two linked list, now move your pointer in longer list till it has covered the difference.
Now from that point length of both string will be equal, now in a while loop perform comparison to check for intersection.
If this resolves your doubt mark it as resolved.