Skip to content

Commit 7aa0a66

Browse files
committed
changes
1 parent 8c928ad commit 7aa0a66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sorts/PigeonHoleSort.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ https://en.wikipedia.org/wiki/Pigeonhole_sort
66
* (n) and the length of the range of possible key values (N)
77
* are approximately the same.
88
*/
9-
function pigeonhole_sort (arr) {
9+
function pigeonHoleSort(arr) {
1010
let min = arr[0]
1111
let max = arr[0]
1212

@@ -33,6 +33,6 @@ function pigeonhole_sort (arr) {
3333
}
3434
}
3535
// Driver code
36-
const arr = Array(8, 3, 2, 7, 4, 6, 8)
37-
pigeonhole_sort(arr)
36+
const arr = [8, 3, 2, 7, 4, 6, 8]
37+
pigeonHoleSort(arr)
3838
console.log(arr)

0 commit comments

Comments
 (0)