Skip to content

Commit d582ccf

Browse files
authored
1 parent 2c1cd55 commit d582ccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sorts/bucketSort.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function bucketSort(list, size){
4242
// bucket fill
4343
for(let iBucket = 0; iBucket < list.length; iBucket++){
4444
let key = Math.floor((list[iBucket] - min) / size);
45-
buckets[key].push(list[iBucket])
45+
buckets[key].push(list[iBucket]);
4646
}
4747
let sorted = [];
4848
// now sort every bucket and merge it to the sorted list
@@ -59,4 +59,4 @@ let arrOrignal = [5, 6, 7, 8, 1, 2, 12, 14];
5959
console.log(arrOrignal);
6060
arrSorted = bucketSort(arrOrignal);
6161
//Array after sort
62-
console.log(arrSorted);
62+
console.log(arrSorted);

0 commit comments

Comments
 (0)