Consider the following possible data structures for a set of n distinct integers.
- A min-heap
- An array of length sorted in increasing order
- A balanced binary search tree
For which of these data structures, the number of steps needed to find and remove the 9th largest element in 0(logn)
time in the worst case?
- I and III
- II and III
- I and II
- II only