Which of the following has a time complexity of O(log n) and needs a sorted array?
Correct answer
C. Binary search
C. Binary search
The answer is Binary search.
Asked in: Engineering Computer Engineering Practice
https://en.wikipedia.org/wiki/Data_structureNot sure why the answer is C? Ask here and get an explanation.