From e6e6648eaf547ea5cb402e933a57af96ac2e430f Mon Sep 17 00:00:00 2001 From: marsonya Date: Sun, 24 Jan 2021 23:33:15 +0530 Subject: [PATCH] Improved main description comment | Counting Sort --- Sorts/CountingSort.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Sorts/CountingSort.js b/Sorts/CountingSort.js index 56e2b2478..3c628d3e9 100644 --- a/Sorts/CountingSort.js +++ b/Sorts/CountingSort.js @@ -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) {