Question DSA-CX-0047
MediumT(n) = 3T(n/2) + n. By the Master Theorem, what is T(n)?
- A.
Θ(n)
- B.
Θ(n log 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
T(n) = 3T(n/2) + n. By the Master Theorem, what is T(n)?
Θ(n)
Θ(n log n)
Sign up free to see the answer and a step-by-step explanation.
Θ(n^log₂3) ≈ Θ(n^1.585)
Θ(n²)