Skip to content

DaniHRE/jsbubblesort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bubble Sort Algorithm 📈

JavaScript Bubble Sort Algorithm

What's is? 📚

Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order.

Example 🧩

If the objective is values ​​in crecent form, then the current position is exchanged with the next position, and if the current position is greater than the larger position, the values ​​at that position are exchanged. Otherwise, the exchange is not performed, only the next pair of comparisons is carried out.

Bubble Sort Example

About

A JS Bubble Sort Algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published