You are viewing a single comment's thread. Return to all comments →
def findMergeNode(h1, h2): p1, p2 = h1, h2 while p1 != p2: p1 = p1.next if p1 else h2 p2 = p2.next if p2 else h1 return p1.data if p1 else None
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 →