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

Answer Posted / monti

Well, Answer-3 is correct but only for link list of type 'O'
but it fails for link list of type '9' (which also have a
circle). So to cover up all possibilities answer 2 should be
followed.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is time complexity of hashmap?

516


Is heap sort adaptive?

466


What is shell sort in data structure?

468


Traverse the given tree using Inorder, Preorder and Postorder traversals. Inorder : D H B E A F C I G J Preorder: A B D H E C F G I J Postorder: H D E B F I J G C A

641


Which sorting technique is faster?

490






Is array a data type?

482


Differentiate between hashset and hashmap.

505


What is example of data?

516


Can we insert null in hashset?

501


What do you mean by level of the tree?

563


What is nonlinear data?

480


How many types of linked list exist?

524


What do you mean by structure property in a heap?

525


What is difference between list set and map?

472


Define left-in threaded tree?

497