From 04e8cc292bd62c277d252b515918d99f6512451c Mon Sep 17 00:00:00 2001 From: Manav Darji Date: Sat, 5 Oct 2019 03:26:32 +0530 Subject: [PATCH] Added QuickSort Algorithm --- data_structures/sortings/QuickSort.java | 52 +++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 data_structures/sortings/QuickSort.java diff --git a/data_structures/sortings/QuickSort.java b/data_structures/sortings/QuickSort.java new file mode 100644 index 0000000..782292e --- /dev/null +++ b/data_structures/sortings/QuickSort.java @@ -0,0 +1,52 @@ +// Java program for implementation of QuickSort +// Referenced from: Geeks for geeks + +class QuickSort +{ + int partition(int arr[], int low, int high) + { + int pivot = arr[high]; + int i = (low-1); + for (int j=low; j