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