371 views

1 Answer

0 votes
0 votes
I think ans is OPTION 3 because suppose when p==null that condition also need to be checked and q=null because we want to end while loop as soon as fast pointer which is 'q' either loops or reaches end.

Related questions

0 votes
0 votes
2 answers
3