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 is self-referential structure in c programming?

662


How do you generate random numbers in C?

663


write a program to find out prime number using sieve case?

1646


What is the modulus operator?

742


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

652






Why void main is used in c?

564


which is an algorithm for sorting in a growing Lexicographic order

1401


Why c is known as a mother language?

650


What is array of structure in c?

603


When was c language developed?

706


What is || operator and how does it function in a program?

635


Define the scope of static variables.

608


What is static function in c?

639


What is chain pointer in c?

605


What is the full form of getch?

587