Ask Question

Which data type structures best for insersion / removal - Stack, linked list, queue?

+5
Answers (1)
  1. 9 December, 21:20
    0
    Stack, Queue.

    Explanation:

    In linked list the insertion and removal are not done in constant time we have to traverse the linked list upto that node and insert or remove the node if it not the head worst case will be when we have to insert or delete at the tail. But this is not the case with stacks and queues the insertion and deletion both in stack is at the top and it takes constant time O (1). Where insertion in queue is in the back and deletion is from the front it is also have constant time.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which data type structures best for insersion / removal - Stack, linked list, queue? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers