Skip to content

Commit a268e37

Browse files
authored
Update Readme.md
1 parent 3ad77ce commit a268e37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sortingAlgo/bubbleSort/Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ if they are not in the intended order. The order can be ascending or descending.
1313
## Complexity
1414
Bubble Sort is one of the simplest sorting algorithms. Two loops are implemented in the algorithm.
1515
### Time Complexities:
16-
* #### Worst Case Complexity: O($n^2$)
16+
* #### Worst Case Complexity: O(n<sup>2</sup>)
1717
If we want to sort in ascending order and the array is in descending order then, the worst case occurs.
1818
* #### Best Case Complexities: O(n)
1919
If the array is already sorted, then there is no need for sorting.
20-
* #### Average Case Complexity: O($n^2$)
20+
* #### Average Case Complexity: O(n<sup>2</sup>)
2121
It occurs when the elements of the array are in jumbled order (neither ascending nor descending).
2222

2323
### Space Complexity:

0 commit comments

Comments
 (0)