data structures - Stack, Queue, Tree? -


13,5,2,9,8 , 1 inserted data structure in order. item deleted using basic data structure operation. if deleted item 1, data structure cannot ?
a. priority queue b. stack c. queue d. search tree

thanks in advance !

it cannot queue, because queue supports "popping" oldest item (fifo: first in first out), , 1 inserted last.


Comments

Popular posts from this blog

java - Null response to php query in android, even though php works properly -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -