3 ms·
Bubble sort's number of operations can vary from n, if the list is sorted already, up to O(n*n) if the list is reversed.
by JoeSmithson 8y ago
Bubble sort's number of operations can vary from n, if the list is sorted already, up to O(n*n) if the list is reversed.