Question DSA-SRCH-0068
HardWhat is the time complexity of finding the square root of n to within 10⁻⁶ by binary search?
- A.
O(n)
- B.
O(1)
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Searching and Binary Search question
What is the time complexity of finding the square root of n to within 10⁻⁶ by binary search?
O(n)
O(1)
Sign up free to see the answer and a step-by-step explanation.
O(log(n × 10⁶))
O(√n)