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
Post a Comment