bool isSublist(const Cell* A, const Cell* B) { if(A == NULL) return true; else if(B == NULL) return false; else if(A->item == B->item) return isSublist(A->next, B->next); else return isSublist(A, B->next); }