Question DSA-CX-0038
EasyFor large n, which is faster: an O(n log n) algorithm or an O(n²) algorithm?
- A.
It depends only on the language
- B.
O(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 large n, which is faster: an O(n log n) algorithm or an O(n²) algorithm?
It depends only on the language
O(n²)
Sign up free to see the answer and a step-by-step explanation.
They are always equal
O(n log n)