Skip to content

Commit ba29a3e

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Selection Sort/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99

1010
### Pseudocode Example:
1111
```
12+
FOR i = 1 TO n - 1
13+
min = i
14+
FOR j = i+1 TO n
15+
IF list[j] < list[min] THEN
16+
min = j;
17+
END IF
18+
END FOR
19+
IF indexMin != i THEN
20+
SWAP list[min] AND list[i]
21+
END IF
22+
END FOR
1223
1324
```
1425

0 commit comments

Comments
 (0)