Data Structures Question:

Minimum number of queues needed to implement the priority queue?

Answer:

Two. One queue is used for actual storing of data and another for storing priorities.

Read All 48 Data Structures Questions
Previous QuestionNext Question
In an AVL tree, at what condition the balancing is to be done?How many different trees are possible with 10 nodes ?