Skip to content

Commit f4e6b66

Browse files
authored
Merge pull request TheAlgorithms#87 from PatOnTheBack/patch-1
Added Semicolon to Avoid Auto Semicolon Insertion
2 parents 2c1cd55 + d582ccf commit f4e6b66

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)