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

Is there any data type in c with variable size?

856


Explain how do you print only part of a string?

930


Are pointers really faster than arrays?

753


What is ctrl c called?

786


Can the sizeof operator be used to tell the size of an array passed to a function?

846


What is a structure and why it is used?

855


What is structure and union in c?

819


Explain the difference between malloc() and calloc() in c?

809


Write program to remove duplicate in an array?

820


What is restrict keyword in c?

858


Difference between strcpy() and memcpy() function?

864


Explain what are the different file extensions involved when programming in c?

850


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

862


What is anagram in c?

702


What is the value of h?

803