Standard formatting fixes | Counting Sort

This commit is contained in:
marsonya
2021-01-24 23:34:56 +05:30
parent e0260015cb
commit 6c916966d6

View File

@ -1,9 +1,9 @@
/** /**
* Counting sort is an algorithm for sorting a collection * Counting sort is an algorithm for sorting a collection
* of objects according to keys that are small integers. * of objects according to keys that are small integers.
* *
* It is an integer sorting algorithm. * It is an integer sorting algorithm.
* *
* Wikipedia: https://en.wikipedia.org/wiki/Counting_sort * Wikipedia: https://en.wikipedia.org/wiki/Counting_sort
* Animated Visual: https://www.cs.usfca.edu/~galles/visualization/CountingSort.html * Animated Visual: https://www.cs.usfca.edu/~galles/visualization/CountingSort.html
*/ */
@ -39,5 +39,5 @@ console.log('\n- Before Sort | Implementation of Counting Sort -')
console.log(array) console.log(array)
// After Sort // After Sort
console.log('- After Sort | Implementation of Counting Sort -') console.log('- After Sort | Implementation of Counting Sort -')
console.log(comcountingSortbSort(array)) console.log(countingSort(array))
console.log('\n') console.log('\n')