Question DSA-CX-0078
HardFor which input size does an O(n²) algorithm with 10n² steps beat an O(n log₂ n) algorithm with 1000 n log₂ n steps?
- A.
Never
- B.
For all 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 which input size does an O(n²) algorithm with 10n² steps beat an O(n log₂ n) algorithm with 1000 n log₂ n steps?
Never
For all n
Sign up free to see the answer and a step-by-step explanation.
Only for small n (roughly n < 1,000)
Only for very large n