A binary search tree T contains n distinct elements. What is the time complexity of picking an element in T that is smaller than the maximum element in T?
- A\(\Theta(n\log n)\)
- B\(\Theta(n)\)
- C\(\Theta(\log n)\)
- D\(\Theta(1)\)
Solve it on GATE DA practice →More Searching & Sorting Algorithms problems