Question

Which of the following is NOT true about binary search ?

A It requires the array to be sorted.
B The time complexity in the worst case is O(n).
C The search space is halved after each comparison.
D It is implemented using recursion or iteration.
E It works for both numerical and string data.
Practice Next

Hey! Ask a query