How can one find a cycle in the linked list? IF found how
to recognize the cycle and delete that cycle?

Answer Posted / kannan

If the address part of the node contains the header address
then cycle is formed Is it so...

Is This Answer Correct ?    21 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why linked lists are better than arrays?

514


What is inserting in data structure?

482


What is the difference between set and unordered_set?

445


How does threaded binary tree represented in data structure?

567


How do you find the time complexity of a bubble sort?

476






Explain about the different lists available in the collection?

445


Can we change the size of an array at run time?

524


What are the advantages of linked list over an array?

543


What is meant by binary tree traversal?

552


What is placement new in data structures?

520


What is default size of hashmap?

477


What do you mean by collision in hashing?

551


Is hashmap ordered?

525


Define a tree?

572


Which is better merge or quick sort?

544