We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
intCompareLists(Node*headA,Node*headB){Node*tempa=headA;Node*tempb=headB;while(tempa!=NULL&&tempb!=NULL){if(tempa->data!=tempb->data){return0;}else{return1;}tempa=tempa->next;tempb=tempb->next;}// This is a "method-only" submission. // You only need to complete this method }
Cookie support is required to access HackerRank
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 →
what's problem with this one