You are viewing a single comment's thread. Return to all comments →
int CompareLists(Node *headA, Node* headB) { while(headA && headB) { if(headA -> data != headB -> data) return 0; headA = headA->next; headB = headB -> next; } return(!(headA || headB)); }
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 →