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 the time complexity of selection sort?

488


Why entry interface is used in map?

513


Is an arraylist a vector?

501


What is insertion sort technique?

497


What is the difference between static and dynamic data?

491






State the rules to be followed during infix to prefix conversions?

649


Define union-by-weight?

625


What is the difference between hashset and hashtable?

442


List the abstract operations in the set?

531


Explain binary search tree?

600


What is a simple graph?

533


What is precision in data structures?

670


How to get top two numbers from an array?

592


What is time and space complexity of bubble sort?

452


Define 2-3-4 tree?

503