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

Differentiate between hashset and treeset.

0 Answers  


Will arraylist maintain insertion order?

0 Answers  


Are dictionaries mutable?

0 Answers  


How do you find the depth of a binary tree?

0 Answers  


Why hashmap is faster than hashtable?

0 Answers  


Can you please explain the difference between array_name and &array_name?

0 Answers  


What is array define its types?

0 Answers  


Define a stack?

0 Answers  


Why linked lists are better than arrays?

0 Answers  


Explain the term recursive case?

0 Answers  


What is Doubly link list?

0 Answers   TCS,


What is the meaning of anonymous array? Explain with an example?

0 Answers  


Categories