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