Skip to content

Commit 7c82e13

Browse files
authored
Update Readme.md
1 parent 7c7ba29 commit 7c82e13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sortingAlgo/ShellSort/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ In shell sort, elements at a specific interval are sorted. The interval between
1111
## Complexity
1212
Shell sort is an unstable sorting algorithm because this algorithm does not examine the elements lying in between the intervals.
1313
### Time Complexities:
14-
* #### Worst Case Complexity: less than or equal to O($n^2$)
14+
* #### Worst Case Complexity: less than or equal to O(n<sup>2</sup>)
1515
* #### Best Case Complexities: O(n*log n)
1616
When the array is already sorted, the total number of comparisons for each interval (or increment) is equal to the size of the array.
1717
* #### Average Case Complexity: O(n*log n)

0 commit comments

Comments
 (0)