Skip to content

Commit f34d7f8

Browse files
authored
Update README.md
1 parent d725a2f commit f34d7f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Selection Sort/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
![gif](https://i2.wp.com/algorithms.tutorialhorizon.com/files/2019/01/Selection-Sort-Gif.gif?)
33

44
### A Selection Sort works as follows:
5-
5+
* We look at the first item in the array. This is 5. Next we search the whole Array for the smallest number (1). Once we find that, we swap the numbers.
6+
* Now with the smallest number in the first position. We look at the next number (3), find the next smallest number (2) and swap them.
7+
* We continue this until all the numbers are sorted!
68

79

810
### Pseudocode Example:

0 commit comments

Comments
 (0)