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
Can we add heterogeneous elements into treemap?
What are the properties of an algorithm?
Can you sort a hashset?
What is difference between arraylist and linkedlist?
What are hashmaps good for?
What is a circular singly linked list?
Write an algorithm for inserting and deleting an element from doubly linked list?
What are scalar values?
Which process places data at the back of the queue?
Can hashmap have duplicate keys?
What is return map?
What is Storage Structures and File Structures? Can you show their relation? What are the examples of each? Thanks
How do we find duplicate elements in an array?
What is queue in data structure?
Write the stack overflow condition.