You are viewing a single comment's thread. Return to all comments →
def findMergeNode(head1, head2): h1=[] h2=[] while head1: h1.append(head1) head1=head1.next while head2: h2.append(head2) head2=head2.next
for i in h1: if i in h2: return i.data
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 →
for i in h1: if i in h2: return i.data