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

Answer Posted / rajdeep...

Monti,
in ur ans what is the solution for the linked list having
two nodes but not circular....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define primary data structures?

657


Define in brief an array. What are the types of array operations?

736


What’s the difference between enumeration and iterator interfaces?

595


How do I sort hashset?

581


Is selection sort greedy?

570






What are skew trees? For a tree with 4 nodes draw all possible binary? Generalize for n nodes how many binary trees can be drawn?

702


Is list an array?

514


If you do not initialize an array what will happen?

668


What are the advantages of linked list?

489


Define right-in threaded tree?

633


Why do we need algorithm?

562


Does treemap allow null key?

550


Define union-by-weight?

693


What are different types of sorting algorithms?

569


Is binary tree balanced?

552