//sorting of array list using Radix sort #include #define range 10 // Range for integers is 10 as digits range from 0-9 // Utility function to get the maximum value in ar[] int MAX(int ar[], int size){ int i, max = ar[0]; for(i = 0; imax) max = ar[i]; } return max; } // Counting sort according to the digit represented by place void countSort(int arr[],int n,int place) { int i,freq[range]={0}; int output[n]; // Store count of occurences in freq[] for(i=0;i=0;i--) { output[freq[(arr[i]/place)%range]-1]=arr[i]; freq[(arr[i]/place)%range]--; } // Copy the output array to arr[], so it contains numbers according to the current digit for(i=0;i