Question DSA-CX-0030
EasyAn O(n²) algorithm takes 1 second for n = 1,000. Roughly how long will it take for n = 2,000?
- A.
1 second
- B.
2 seconds
- 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
An O(n²) algorithm takes 1 second for n = 1,000. Roughly how long will it take for n = 2,000?
1 second
2 seconds
Sign up free to see the answer and a step-by-step explanation.
4 seconds
8 seconds