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

Answer Posted / monti

Ok guys now you all know the answer of "How to find if a
list has a cycle or not"...now answer this "Give an optimal
solution to return the stating point of cycle in a link-list
if it contains a cycle or else return NULL. You are given
head of that link-list"

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write program for Quick sort ?

589


State the difference between queues and linked lists?

533


How do you get placements?

464


What are the advantage of collection classes over arrays?

518


How do I push an element into a stack?

477






What is mergesort and hashtable?

637


If you do not initialize an array what will happen?

590


Define ancestor and descendant ?

543


Is priority queue sorted?

508


Why is bubble sort stable?

480


Define binary tree insertion.

580


What is the order of b tree?

526


What is the difference between hashset and hashtable?

428


Does treemap preserve order?

454


What are different types of algorithms?

483