You are viewing a single comment's thread. Return to all comments →
Another way--With an error handler in python:
def CompareLists(headA, headB): cura=headA curb=headB while cura!=None or curb!=None: try: if cura.data!=curb.data: return 0 else: cura=cura.next curb=curb.next except: return 0 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 →
Another way--With an error handler in python: