Question: Which of the following operations can be performed in O(1) time on a priority queue implemented with a max-heap?
Options:
Correct Answer: Get Max
Solution:
Getting the maximum element in a max-heap can be done in O(1) time since the maximum element is always at the root.