Intersection Node In Two Linkedlist Using Difference Method
1. Given the heads of two singly linked-lists headA and headBInput Format
2. Return the node at which the two lists intersect.
3. If the two linked lists have no intersection, return null.
Input is managed for you.Output Format
Output is managed for you.Question Video
0 <= N <= 10^6Sample Input
4Sample Output
14 12 8 7
2
4
7 2 6 5
8
-
Asked in Companies
-
Related Topics
Video Solution
Code Solution
{ }
{ }
Run