mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-10 11:09:43 +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
|
||||
simple sorting algorithm that repeatedly steps through
|
||||
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).
|
||||
The pass through the list is repeated until no swaps
|
||||
are needed, which indicates that the list is sorted.
|
||||
items and swaps them if they are in the wrong order
|
||||
(ascending or descending arrangement). The pass through
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user