(Cognizant) Cognizant Test Practice Test
Cognizant Cognizant Data Structures and Algorithms
What is the time complexity of binary search on a sorted array of n elements?
Select your answer
A
O(n)
B
O(log n)
C
O(n log n)
D
O(1)
Hint