From af89662fb2d920339d005d19ff401a9eb028c0dd Mon Sep 17 00:00:00 2001 From: Ayushi C <67193440+AyushiChakrabarty@users.noreply.github.com> Date: Wed, 2 Sep 2020 13:15:32 +0530 Subject: [PATCH] Create Quick Sort in C++ --- Quick Sort in C++ | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Quick Sort in C++ diff --git a/Quick Sort in C++ b/Quick Sort in C++ new file mode 100644 index 0000000..1ccb638 --- /dev/null +++ b/Quick Sort in C++ @@ -0,0 +1,47 @@ +//QuickSort in C++ +#include +using namespace std; + + +int Partition(int *A, int start, int end) +{ + int i; + int pivot=A[end]; + int part_i=start; + for(i=start; i>n; + cout<<"Enter the elements:"<>arr[i]; + + quicksort(arr,0,n-1); + for(i=0;i