Question DSA-CX-0057
MediumFor n = 10⁶ and about 10⁸ simple operations per second, which complexity is too slow for a 1-second limit?
- A.
O(n²)
- B.
O(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
For n = 10⁶ and about 10⁸ simple operations per second, which complexity is too slow for a 1-second limit?
O(n²)
O(n log n)
Sign up free to see the answer and a step-by-step explanation.
O(n)
O(n √n) for small constants