Bubble sort has an average and worst-case running time of O ( n 2 ) O\big(n^2\big) O(n2), so in most cases, a faster algorithm is more desirable. image1.
確定! 回上一頁