Final Challenge #1
Lesson 8 of 9 in Coddy's Counting Sort - DSA Series course.
Challenge
EasyTime to put a twist on Counting Sort.
Modify your countingSort function so it returns the array in descending order (from largest to smallest).
Hint: only the rebuild direction changes.
Try it yourself
#include <stdlib.h>
int* countingSort(int* arr, int arr_size, int* returnSize) {
// Write code here
*returnSize = arr_size;
return arr;
}