diff --git a/Countingsort.c b/Countingsort.c new file mode 100644 index 0000000..56c68af --- /dev/null +++ b/Countingsort.c @@ -0,0 +1,33 @@ +#include + +void counting_sort(int a[],int n,int max) +{ + int count[50]={0},i,j; + + for(i=0;imax) + max=a[i]; + } + + counting_sort(a,n,max); + return 0; +} \ No newline at end of file