Start learning →

What time complexity does bubble sort achieve on a sorted list?

AO(n^3) time
BO(n^2) time
CO(n log n) time
DO(n) time
Answer & Solution
Correct answer: D. O(n) time
Bubble sort runs in linear O(n) time on a list that is already sorted.
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 →