From 7aa0a66ea5c0b2868930396dd5cb05449231490e Mon Sep 17 00:00:00 2001 From: Chris Kolonas Date: Wed, 25 Nov 2020 21:36:55 +0200 Subject: [PATCH] changes --- Sorts/PigeonHoleSort.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sorts/PigeonHoleSort.js b/Sorts/PigeonHoleSort.js index 820cd9748..f8eed47ed 100644 --- a/Sorts/PigeonHoleSort.js +++ b/Sorts/PigeonHoleSort.js @@ -6,7 +6,7 @@ https://en.wikipedia.org/wiki/Pigeonhole_sort * (n) and the length of the range of possible key values (N) * are approximately the same. */ -function pigeonhole_sort (arr) { +function pigeonHoleSort(arr) { let min = arr[0] let max = arr[0] @@ -33,6 +33,6 @@ function pigeonhole_sort (arr) { } } // Driver code -const arr = Array(8, 3, 2, 7, 4, 6, 8) -pigeonhole_sort(arr) +const arr = [8, 3, 2, 7, 4, 6, 8] +pigeonHoleSort(arr) console.log(arr)