Improved main description comment | Counting Sort

This commit is contained in:
marsonya
2021-01-24 23:33:15 +05:30
parent 028c16999c
commit e6e6648eaf

View File

@ -1,8 +1,11 @@
/*
* Counting sort is an algorithm for sorting a collection of objects according to keys that are small integers;
* that is, it is an integer sorting algorithm.
* more information: https://en.wikipedia.org/wiki/Counting_sort
* counting sort visualization: https://www.cs.usfca.edu/~galles/visualization/CountingSort.html
/**
* Counting sort is an algorithm for sorting a collection
* of objects according to keys that are small integers.
*
* It is an integer sorting algorithm.
*
* Wikipedia: https://en.wikipedia.org/wiki/Counting_sort
* Animated Visual: https://www.cs.usfca.edu/~galles/visualization/CountingSort.html
*/
function countingSort (arr, min, max) {