Define a priority queue?



Define a priority queue?..

Answer / Mohd Arif

A priority queue is a data structure that follows the principle of First-In, First-Out (FIFO) but with an additional priority attribute for each element. Elements with higher priority are served first.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

How memory is reserved using a declaration statement ?

1 Answers  


Does hashmap maintain insertion order?

1 Answers  


Define forest?

1 Answers  


How does a selection sort work?

1 Answers  


What is a class user?

1 Answers  


What are arrays give example?

1 Answers  


Does arraylist shrink?

1 Answers  


How many types of lists are there?

1 Answers  


Can we use any class as map key?

1 Answers  


Write an algorithm to show the postfix expression with the input given as : a b + c d +*f ? .

1 Answers  


What are trees in data structures?

1 Answers  


Define linear probing?

1 Answers  


Categories