mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-20 18:43:43 +08:00
sorts/
This commit is contained in:
@ -52,9 +52,11 @@ function bucketSort (list, size) {
|
||||
}
|
||||
return sorted
|
||||
}
|
||||
|
||||
// Testing
|
||||
const arrOrignal = [5, 6, 7, 8, 1, 2, 12, 14]
|
||||
// Array before Sort
|
||||
console.log(arrOrignal)
|
||||
arrSorted = bucketSort(arrOrignal)
|
||||
const arrSorted = bucketSort(arrOrignal)
|
||||
// Array after sort
|
||||
console.log(arrSorted)
|
||||
|
Reference in New Issue
Block a user