mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2026-03-13 08:51:02 +08:00
Add selection sort.
This commit is contained in:
@@ -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.
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
Reference in New Issue
Block a user