From 2ac4910cf166c056eb86ecb17e8c87ac3b9c15ac Mon Sep 17 00:00:00 2001 From: pevbyplqf <365069475@qq.com> Date: Sat, 19 Feb 2022 14:06:58 +0800 Subject: [PATCH] =?UTF-8?q?Add=20=E5=BD=92=E5=B9=B6=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 归并排序 | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 归并排序 diff --git a/归并排序 b/归并排序 new file mode 100644 index 0000000..dedb4d5 --- /dev/null +++ b/归并排序 @@ -0,0 +1,66 @@ +//归并排序 +void copyArray(int source[], int dest[],int len,int first) +{ + int i; + int j=first; + for(i=0;i>n; + int *a=new int[n]; + + for(int j=0;j>a[j]; + MergeSort(a,n); + for(int i=0;i