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