Radix Sort Algorithm

前端 未结 4 1241
时光说笑
时光说笑 2021-01-14 07:39

I have been given some algorithms to reverse engineer. The algorithm below is a radix sort, but I am very confused about what is actually happening in the code.

I\'

4条回答
  •  时光说笑
    2021-01-14 07:56

    /*try this iterative method and 100% working*/
        #include
        #include
        int sort();
        int display();
        long int a[20],n;
        int main(){
        int i;
        printf("enter the size:");
        scanf("%d",&n);
        printf("\nenter the array elements\n");
              for(i=0;i

提交回复
热议问题