We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cae1e1 commit e1e9ef4Copy full SHA for e1e9ef4
sortingAlgo/selectionSort/selectionSort.md
@@ -10,16 +10,16 @@ selection sort(array)
10
swap array[k] and array[i]
11
```
12
13
-# Time Complexities:
+## Time Complexities:
14
- Worst Case/Average: O(n<sup>2</sup>)
15
- Best Case: O(n)
16
Selection sort is inefficient on large lists.
17
18
-# Space Complexity:
+## Space Complexity:
19
- O(1)
20
Selection sort has a space complexity of O(1), making it efficient when memory is lacking.
21
22
-# Instructions for running Code:
+## Instructions for running Code:
23
- cpp
24
25
g++ selectionSort.cc
0 commit comments