319 views
0 votes
0 votes

1.p!=NULL
2.q!=NULL

3.(p!=NULL)&&(q!=NULL)

4.(.p!=NULL)||(q!=NULL)

1 Answer

0 votes
0 votes
d is the answer for detecting loop in a linklist we take pointers. Run one faster than other. If there is a loop they will definitely meet after some time. or if there is no loop one of them will hit Null.

No related questions found