摘要:
#include<stdio.h> void Merge(int arr[],int L,int M,int R) { int LeftSize=M-L; int RightSize=R-M+1; int Left[LeftSize]; int Right[RightSize]; /*1.fill 阅读全文
posted @ 2020-05-31 23:20 angury 阅读(132) 评论(0) 推荐(0) 编辑
|
|||
摘要:
#include<stdio.h> void Merge(int arr[],int L,int M,int R) { int LeftSize=M-L; int RightSize=R-M+1; int Left[LeftSize]; int Right[RightSize]; /*1.fill 阅读全文
posted @ 2020-05-31 23:20 angury 阅读(132) 评论(0) 推荐(0) 编辑
摘要:
void selectSort(int A[],int N) { int i,j; for(i=0;i<N-1;i++) { for(j=i+1;j<N;j++) { if(A[i]>A[j]) { int tmp=A[j]; A[j]=A[i]; A[i]=tmp; } } } } 阅读全文
posted @ 2020-05-31 23:16 angury 阅读(132) 评论(0) 推荐(0) 编辑 |
|||