mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-12-08 19:06:00 +00:00
Add selection sort.
This commit is contained in:
parent
d12188980d
commit
37bbc53bf3
@ -6,3 +6,5 @@ the list to be sorted, compares each pair of adjacent
|
||||
items and swaps them if they are in the wrong order.
|
||||
The pass through the list is repeated until no swaps
|
||||
are needed, which indicates that the list is sorted.
|
||||
|
||||

|
||||
|
||||
@ -9,6 +9,6 @@ performance advantages over more complicated algorithms
|
||||
in certain situations, particularly where auxiliary
|
||||
memory is limited.
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user