The average case time complexity of bubble sort is O(n^2). Worst Case Complexity - It occurs when the array elements are required to be sorted in reverse order.
確定! 回上一頁