You are viewing a single comment's thread. Return to all comments →
Python rules:D
def compare_lists(llist1, llist2): if ((llist1 is not None)^(llist2 is not None)): return 0 else: msg = (llist1 is None and llist2 is None)and 1 or (llist1.data==llist2.data and compare_lists(llist1.next,llist2.next) or 0) return msg
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 rules:D