Skip to content

Commit 37bbc53

Browse files
committed
Add selection sort.
1 parent d121889 commit 37bbc53

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/algorithms/sorting/bubble-sort/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ the list to be sorted, compares each pair of adjacent
66
items and swaps them if they are in the wrong order.
77
The pass through the list is repeated until no swaps
88
are needed, which indicates that the list is sorted.
9+
10+
![Algorithm Visualization](https://upload.wikimedia.org/wikipedia/commons/c/c8/Bubble-sort-example-300px.gif)

src/algorithms/sorting/selection-sort/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ performance advantages over more complicated algorithms
99
in certain situations, particularly where auxiliary
1010
memory is limited.
1111

12-
![Selection Sort Visualization](https://upload.wikimedia.org/wikipedia/commons/b/b0/Selection_sort_animation.gif)
12+
![Algorithm Visualization](https://upload.wikimedia.org/wikipedia/commons/b/b0/Selection_sort_animation.gif)
1313

14-
![Selection Sort Visualization](https://upload.wikimedia.org/wikipedia/commons/9/94/Selection-Sort-Animation.gif)
14+
![Algorithm Visualization](https://upload.wikimedia.org/wikipedia/commons/9/94/Selection-Sort-Animation.gif)

0 commit comments

Comments
 (0)