Minimum number of queues needed to implement the priority queue?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is adt in data structure?

679


Define Data Structures?

751


Is unordered_map a hash table?

636


Advanced problems related to Data Structures were asked

719


Can we create a null as a key for a map collection?

677


What is link list in data structure?

684


Does linkedhashset allow null values?

708


Differentiate between push and pop?

921


What are priority queues?

687


Is hashset a collection?

658


How can you add an item to the beginning of the list?

759


Write a code for dynamic allocation of array.

765


How does hashset maintain order?

689


Is hashmap a collection?

695


What is the difference between arraylist and array?

672