You are viewing a single comment's thread. Return to all comments →
its shows error what to do?
int* countingSort(int arr_count, int* arr, int* result_count) { for(int i=0;i<100;i++){ result_count[i]=0; } for(int i=0;i= 0 && arr[i] < 100) { result_count[arr[i]]++;} } return result_count;
}
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 →
its shows error what to do?
int* countingSort(int arr_count, int* arr, int* result_count) { for(int i=0;i<100;i++){ result_count[i]=0; } for(int i=0;i= 0 && arr[i] < 100) { result_count[arr[i]]++;} } return result_count;
}