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