How would you find a cycle in a linked list?

Answer Posted / amit

the last node of the list will have address of first node
then it is a cycle linked list.

Is This Answer Correct ?    4 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

660


What are the advantages and disadvantages of pointers?

570


When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

1525


What is volatile, register definition in C

680


What are lookup tables in c?

546






a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2330


What is ponter?

768


What is the use of structure padding in c?

555


What is time null in c?

579


Not all reserved words are written in lowercase. TRUE or FALSE?

719


Explain what does a function declared as pascal do differently?

634


Is null valid for pointers to functions?

603


How can I manipulate individual bits?

604


Why c is a mother language?

552


cavium networks written test pattern ..

3586