diff --git a/mergesort.c b/mergesort.c index 6875558..da63a4f 100644 --- a/mergesort.c +++ b/mergesort.c @@ -1,69 +1,64 @@ #include -void merge(int a[],int low,int mid,int high) -{ - int b[high]; - int i=low; - int j=mid+1; - int k=low; - while(i<=mid && j<=high) - { - if(a[i]<=a[j]) - { - b[k]=a[i]; +void show(int arr[],int n){ + printf("\n"); + for(int i=0;imid) - { - while(j<=high) - { - b[k]=a[j]; - j++; - k++; - } + while(i