mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +08:00
chore: Merge pull request #675 from mohan-murali/patch-1
Update BubbleSort.js
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
/* Bubble Sort is an algorithm to sort an array. It
|
/* Bubble Sort is an algorithm to sort an array. It
|
||||||
* compares adjacent element and swaps thier position
|
* compares adjacent element and swaps their position
|
||||||
* The big O on bubble sort in worst and best case is O(N^2).
|
* The big O on bubble sort in worst and best case is O(N^2).
|
||||||
* Not efficient.
|
* Not efficient.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user