Start learning →

What is the worst-case and average time complexity of bubble sort?

AO(n log n) time
BO(n^2) time
CO(log n) time
DO(n) time
Answer & Solution
Correct answer: B. O(n^2) time
Bubble sort requires O(n^2) time in both the average and worst cases.
Practise this question with Quill — ICSE Class 10 →

Keep practising Arrays in Java (Single and Double Dimensional)

Browse all Arrays in Java (Single and Double Dimensional) questions for ICSE Class 10, or explore more Computer Applications topics.

Start a Arrays in Java (Single and Double Dimensional) lesson →