Question DSA-CX-0004
EasyWhich of these grows the fastest as n increases?
- A.
O(n³)
- B.
O(2ⁿ)
- C.
Show answer and explanation
Answer: B
Exponential growth eventually beats any polynomial: 2ⁿ > n³ for n ≥ 10.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Complexity Analysis question
Which of these grows the fastest as n increases?
O(n³)
O(2ⁿ)
Answer: B
Exponential growth eventually beats any polynomial: 2ⁿ > n³ for n ≥ 10.
O(n²)
O(n log n)