mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-07 01:44:52 +08:00
Fix indentations in bubble-sort README.
This commit is contained in:
@ -3,9 +3,10 @@
|
|||||||
Bubble sort, sometimes referred to as sinking sort, is a
|
Bubble sort, sometimes referred to as sinking sort, is a
|
||||||
simple sorting algorithm that repeatedly steps through
|
simple sorting algorithm that repeatedly steps through
|
||||||
the list to be sorted, compares each pair of adjacent
|
the list to be sorted, compares each pair of adjacent
|
||||||
items and swaps them if they are in the wrong order(ascending or descending arrangement).
|
items and swaps them if they are in the wrong order
|
||||||
The pass through the list is repeated until no swaps
|
(ascending or descending arrangement). The pass through
|
||||||
are needed, which indicates that the list is sorted.
|
the list is repeated until no swaps are needed, which
|
||||||
|
indicates that the list is sorted.
|
||||||
|
|
||||||

|

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