G
Guest
Can someone briefly explain what this recursive algorithm involving circularly linked lists does? Thanks in advance.
bool nine(node *p, node *q)
{ if (p == NULL && q == NULL) return TRUE;
else if (p->data == q->data)
{ p=p->link; q=q->link; nine(p,q); }
else return FALSE;
}
bool nine(node *p, node *q)
{ if (p == NULL && q == NULL) return TRUE;
else if (p->data == q->data)
{ p=p->link; q=q->link; nine(p,q); }
else return FALSE;
}