wookiebrewer6581 wookiebrewer6581
  • 21-08-2019
  • Computers and Technology
contestada

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

Respuesta :

ExieFansler ExieFansler
  • 27-08-2019

Answer:

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.

Answer Link

Otras preguntas

How much sleep does a Jaguar get in a year
Who was at risk of early death due to the contamination of water and animal-borne diseases?
A K-12 school's score is based on the data in the following table: Subject Weight Grade English 25% B Math 25% D Graduation rates 30% D Career readi
The area of grassland extending through the west-central portion of the united states is known as:
Why did Americans accept the Constitution, with its strong national government and powerful executive, after, only a decade earlier, violently revolting against
Is the answer to number 23????,
how to solve 2x^3+x+3
What is the purpose of the introduction in an essay?
what does m equal 2/3 (m-8)=4
giving brainliest!!! Which of the following is true about how your skill set relates to a future career? (1 point) A.Employers like to hire people with only ful