Intersection of linked list - Test case

For this test case how could be the intersecting node be 8? It is 1 right?
Input: intersectVal = 8, listA = [4,1,8,4,5], listB = [5,6,1,8,4,5], skipA = 2, skipB = 3
Output: Reference of the node with value = 8

image

Comments (1)