We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
def findMergeNode(head1, head2):
A,B = head1, head2
seen=[]
while A:
seen.append(A)
A=A.next
while B:
if B in seen:
return B.data
else:
B=B.next
return None
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Find Merge Point of Two Lists
You are viewing a single comment's thread. Return to all comments →
Simple Python code: