From d5b8168bf2ea0be88629a39860ce935ed6050b6a Mon Sep 17 00:00:00 2001 From: pzs93xi8q <2927226454@qq.com> Date: Thu, 17 Feb 2022 18:44:35 +0800 Subject: [PATCH] =?UTF-8?q?Delete=20'=E5=BF=AB=E9=80=9F=E6=B3=95.cpp'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 快速法.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 快速法.cpp diff --git a/快速法.cpp b/快速法.cpp deleted file mode 100644 index a0c6332..0000000 --- a/快速法.cpp +++ /dev/null @@ -1,32 +0,0 @@ -void quick(int *a,int i,int j) -{ - int m,n,temp; - int k; - m=i; - n=j; - k=a[(i+j)/2]; /*ѡȡ�IJ���*/ - do - { - while( a[m]k && n>i ) - n--; /* ���ҵ����ұ�kС��Ԫ��*/ - - if(m<=n) - { /*���ҵ��������������򽻻�*/ - temp=a[m]; - a[m]=a[n]; - a[n]=temp; - m++; - n--; - } - } - while(m<=n); - - if(mi) - quick(a,i,n); -}