You are viewing a single comment's thread. Return to all comments →
C:
int* countingSort(int arr_count, int* arr, int* result_count) { *result_count = 100; int *r = calloc(sizeof(int), 100); for(int i =0;i<arr_count;i++){ (*(r+*(arr+i)))++; } return r; }
Seems like cookies are disabled on this browser, please enable them to open this website
Counting Sort 1
You are viewing a single comment's thread. Return to all comments →
C: