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 |
Give a real time example of stack
How do I sort hashset?
Which is the parent class of hashmap class?
Write the algorithm for converting infix expression to postfix expression?
What is the order of b tree?
What is the height of a binary tree?
Tell me what should be done in the base case for this recursive problem?
Does hashset allow duplicates?
What are the advantages of linked list over array (static data structure)?
Is data structures and algorithms important?
What is the difference between Array and Arraylist?
What is array define its types?