Question: If you have a priority queue implemented as a binary heap, what is the time complexity of finding the k-th smallest element?
Options:
Correct Answer: O(k log n)
Solution:
Finding the k-th smallest element using a priority queue requires extracting the minimum k times, resulting in O(k log n) time complexity.