MCQOPTIONS
Saved Bookmarks
| 1. |
In a balanced binary search tree with n elements, what is the worst case time complexity of reporting all elements in range [a, b]? Assume that the number of reported elements is k. |
| A. | Θ(log n) |
| B. | Θ(log n + k) |
| C. | Θ(k log n) |
| D. | Θ(n log k) |
| Answer» C. Θ(k log n) | |