ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
What is the time complexity of binary search with iteration?
Correct Answer: B — O(logn)
(T(n) = T(n/2) + theta(1))
Using the divide and conquer master theorem, we get the time complexity as O(logn).