What is the main advantage of using a binary heap for implementing a priority queue?
A. It provides efficient insertions and deletions.
B. It maintains elements in sorted order.
C. It allows quick search operations.
D. It uses less memory.
Answer: Option A

Join The Discussion