The worst-case time complexity of binary search on n elements is:
Correct answer
A. O(log n)
A. O(log n)
The search space halves each step.
Asked in: Engineering Computer Engineering Practice
https://en.wikipedia.org/wiki/Data_structureNot sure why the answer is A? Ask here and get an explanation.