Minimum number of queues needed to implement the priority queue?



Minimum number of queues needed to implement the priority queue?..

Answer / rohit sah

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

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Is arraylist a list?

0 Answers  


Give one example of right rotation.

0 Answers  


In an avl tree, at explain what condition the balancing is to be done?

0 Answers  


What is dynamic data structure?

1 Answers  


Which is better stack or queue?

0 Answers  


Why is it important to sort waste?

0 Answers  


Differentiate between arraylist and vector.

0 Answers  


Which sort show the best average behavior?

9 Answers  


How to find the duplicate in an array?

0 Answers  


Does hashmap maintain insertion order?

0 Answers  


Does treemap allow null key?

0 Answers  


What is unhashable type list?

0 Answers  


Categories