You are viewing a single comment's thread. Return to all comments →
Python 3
def compare_lists(llist1, llist2): while llist1 or llist2: try: if llist1.data != llist2.data: return 0 except AttributeError: return 0 llist1, llist2 = llist1.next, llist2.next return 1
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 →
Python 3