mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-07 19:17:33 +08:00
Standard formatting fixes | Counting Sort
This commit is contained in:
@ -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')
|
||||||
|
Reference in New Issue
Block a user