摘要:
void swap(int *a,int *b){ int temp=*a; *a=*b; *b=temp; } void quickSort(int *a,int left,int right){ if(left>right) return; int temp=a[left]; int i=left; int j=right; while(i!=j){ while... 阅读全文
posted @ 2019-03-22 17:31
赵钱富贵
阅读(157)
评论(0)
推荐(0)
摘要:
void merge1(int *a,int left,int mid,int right){ int n1=mid-left+1; int n2=right-mid; int *arr1=new int[n1]; int *arr2=new int[n2]; for(int i=0;i<n1;i++) arr1[i]=a[left+i]; for(int i=0;i<n2;i+... 阅读全文
posted @ 2019-03-22 10:16
赵钱富贵
阅读(273)
评论(0)
推荐(0)

浙公网安备 33010602011771号