Question DSA-CX-0050
MediumWhich ordering of growth rates is correct, from slowest to fastest?
- A.
log n, n, √n, n log n, 2ⁿ, n²
- B.
log n, √n, n, n log n, n², 2ⁿ
- 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
Which ordering of growth rates is correct, from slowest to fastest?
log n, n, √n, n log n, 2ⁿ, n²
log n, √n, n, n log n, n², 2ⁿ
Sign up free to see the answer and a step-by-step explanation.
√n, log n, n, n², n log n, 2ⁿ
n, log n, √n, n², n log n, 2ⁿ