mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-13 06:23:00 +08:00
Fix indentations in bubble-sort README.
This commit is contained in:
parent
d91edc9a39
commit
6be276fceb
@ -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.
|
||||||
|
|
||||||
![Algorithm Visualization](https://upload.wikimedia.org/wikipedia/commons/c/c8/Bubble-sort-example-300px.gif)
|
![Algorithm Visualization](https://upload.wikimedia.org/wikipedia/commons/c/c8/Bubble-sort-example-300px.gif)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user