Ask Question
17 February, 08:29

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

+3
Answers (1)
  1. 17 February, 11:21
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers