Skip to content

Commit e6e6648

Browse files
committed
Improved main description comment | Counting Sort
1 parent 028c169 commit e6e6648

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Sorts/CountingSort.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
/*
2-
* Counting sort is an algorithm for sorting a collection of objects according to keys that are small integers;
3-
* that is, it is an integer sorting algorithm.
4-
* more information: https://en.wikipedia.org/wiki/Counting_sort
5-
* counting sort visualization: https://www.cs.usfca.edu/~galles/visualization/CountingSort.html
1+
/**
2+
* Counting sort is an algorithm for sorting a collection
3+
* of objects according to keys that are small integers.
4+
*
5+
* It is an integer sorting algorithm.
6+
*
7+
* Wikipedia: https://en.wikipedia.org/wiki/Counting_sort
8+
* Animated Visual: https://www.cs.usfca.edu/~galles/visualization/CountingSort.html
69
*/
710

811
function countingSort (arr, min, max) {

0 commit comments

Comments
 (0)