From af46de6dacb759f8635cb13c42a79f5f83c0e3ac Mon Sep 17 00:00:00 2001 From: avniagarwal23 <113287146+avniagarwal23@users.noreply.github.com> Date: Fri, 14 Oct 2022 13:49:52 +0530 Subject: [PATCH] Create quick sort This is a algorithm for quicksort --- Searching algos/quick sort | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Searching algos/quick sort diff --git a/Searching algos/quick sort b/Searching algos/quick sort new file mode 100644 index 00000000..f736aebe --- /dev/null +++ b/Searching algos/quick sort @@ -0,0 +1,72 @@ +#include +void printarray(int *A,int n); +void quicksort (int *A,int,int); +int partition (int *A ,int,int); +int main() +{ + int n,A[50],i; + printf("enter the number of elements in the array=\n"); + scanf("%d",&n); + printf("input the elements in the array=\n"); + for(i=0;ipivot) + { + j--; + } + if(i