From bf45ae3631fd2f6911ef40be59ced0336f5d875f Mon Sep 17 00:00:00 2001 From: pg3o9mcf2 <859292717@qq.com> Date: Sat, 19 Feb 2022 22:03:55 +0800 Subject: [PATCH] =?UTF-8?q?Add=20=E5=BF=AB=E9=80=9F=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 快速排序 | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 快速排序 diff --git a/快速排序 b/快速排序 new file mode 100644 index 0000000..bdfc74c --- /dev/null +++ b/快速排序 @@ -0,0 +1,49 @@ +//复杂度:O(n^2) +//时间:1.7s +#include +int par(int arr[],int left,int right) +{ + int j=left,i; + int select=arr[right]; + int t; + for(i=left;i