You are viewing a single comment's thread. Return to all comments →
cur1=llist1 cur2=llist2 val1=[] val2=[] while cur1: val1.append(cur1.data) cur1=cur1.next while cur2: val2.append(cur2.data) cur2=cur2.next if val1==val2: return 1 else: return 0
Seems like cookies are disabled on this browser, please enable them to open this website
Compare two linked lists
You are viewing a single comment's thread. Return to all comments →