Skip to content

Commit e1e9ef4

Browse files
authored
Update selectionSort.md formatting
1 parent 5cae1e1 commit e1e9ef4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: sortingAlgo/selectionSort/selectionSort.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ selection sort(array)
1010
swap array[k] and array[i]
1111
```
1212

13-
# Time Complexities:
13+
## Time Complexities:
1414
- Worst Case/Average: O(n<sup>2</sup>)
1515
- Best Case: O(n)
1616
Selection sort is inefficient on large lists.
1717

18-
# Space Complexity:
18+
## Space Complexity:
1919
- O(1)
2020
Selection sort has a space complexity of O(1), making it efficient when memory is lacking.
2121

22-
# Instructions for running Code:
22+
## Instructions for running Code:
2323
- cpp
2424
```
2525
g++ selectionSort.cc

0 commit comments

Comments
 (0)