Question DSA-CX-0017
HardUsing the Master Theorem, what does T(n) = T(n/2) + O(1) solve to?
- A.
O(1)
- B.
O(n)
- 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
Complexity Analysis question
Using the Master Theorem, what does T(n) = T(n/2) + O(1) solve to?
O(1)
O(n)
Sign up free to see the answer and a step-by-step explanation.
O(n log n)
O(log n)