We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 199d263 commit 4ebe593Copy full SHA for 4ebe593
Sorts/CombSort.js
@@ -16,7 +16,13 @@
16
* Wikipedia: https://en.wikipedia.org/wiki/Comb_sort
17
*/
18
19
-function combSort (list) {
+/**
20
+ * combSort returns an array of numbers sorted in increasing order.
21
+ *
22
+ * @param {number[]} list The array of numbers to sort.
23
+ * @return {number[]} The array of numbers sorted in increasing order.
24
+ */
25
+function combSort(list) {
26
if (list.length === 0) {
27
return list
28
}
0 commit comments