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
Define ancestor and descendant ?
What are stacks? Give some of its applications.
When should structures be passed by values or by reference?
What is time complexity of sorting algorithms?
What is the difference between array and list?
Why is hashset not ordered?
What are different sorting algorithms?
How many parts are there in a declaration statement using data structures?
How can you implement a stack?
What is the complexity of selection sort?
What are the disadvantages of using collection classes over arrays?
Write an algorithm through which the inserting and deleting of elements can take place in circular queue?
How to sort an Array?
How is hashmap o 1?
Define double linked list?