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

What is difference between array and arraylist?

504


Which algorithm is used in collections sort method?

456


do records fall under linear or non linear data structures?

1320


What does abstract data type mean?

574


What is dynamic array with example?

544






Do all declaration statements result in a fixed reservation in memory?

508


How will you reverse Linked List.

528


Which sorting technique is best in worst case?

496


What is data structure and its operations?

466


What is binary tree example?

551


How to get a list of tables, views and columns in firebird database?

471


Explain the sorting algorithm that is most suitable to be used with single linked list?

449


Is array a collection?

485


How can we reverse the order in the treemap?

482


What is the difference between length () and size () of arraylist?

445