From 07a824252c69e7f20cd1bbdf0cb6af63f757fc63 Mon Sep 17 00:00:00 2001 From: Liuhua Date: Thu, 11 May 2023 11:35:15 +0000 Subject: [PATCH] =?UTF-8?q?fixed=207ad600b=20from=20https://gitee.com/open?= =?UTF-8?q?harmony-sig/vendor=5Fbananapi/pulls/31=20=E5=9B=9E=E9=80=80=20'?= =?UTF-8?q?Pull=20Request=20!11=20:=20CI=20bot=E6=B5=8B=E8=AF=95=E5=8D=955?= =?UTF-8?q?010beta1=EF=BC=8C=E8=AF=B7=E5=8B=BF=E5=90=88=E5=85=A5!'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test0510.c | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 test0510.c diff --git a/test0510.c b/test0510.c deleted file mode 100644 index a0bc12b..0000000 --- a/test0510.c +++ /dev/null @@ -1,19 +0,0 @@ -//对区间[left,right]进行划分 - - -int Partition(int A[],int left, int right) -{ - int temp =A[left]; //存放到临时变量temp - - while(left < right) //只要left与right不相遇 - { - while(left < right && A[right] > temp) right--;//反复左移 - A[left] = A[right]; - - while(left < right && A[left] <= temp) left++;//反复右移 - A[right] = A[left]; - } - - A[left] = temp; //把temp放到right与left相遇的地方 - return left; //返回相遇下标 -} \ No newline at end of file -- Gitee