0 votes 0 votes 1.p!=NULL 2.q!=NULL 3.(p!=NULL)&&(q!=NULL) 4.(.p!=NULL)||(q!=NULL) Rajesh Raj asked Nov 15, 2016 Rajesh Raj 319 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply Prashant. commented Nov 15, 2016 reply Follow Share 4RTH IS ANSWER ALREADY SOLVED PLZ CHECK 0 votes 0 votes Rajesh Raj commented Nov 15, 2016 reply Follow Share provide the link sir plss 0 votes 0 votes Prashant. commented Nov 15, 2016 reply Follow Share Almost same https://gateoverflow.in/79552/linked-list 2 votes 2 votes Rajesh Raj commented Nov 15, 2016 reply Follow Share but ans here given in the soln of test Q!=NULL 0 votes 0 votes Please log in or register to add a comment.
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. Tendua answered Nov 15, 2016 Tendua comment Share Follow See all 0 reply Please log in or register to add a comment.