MCPcopy Create free account
hub / github.com/Manvityagi/PW-Skills-Java-Course-Codes / quickSort

Method quickSort

Lecture 42 Quick Sort/src/Main.java:32–37  ·  view source on GitHub ↗
(int[] arr, int st, int end)

Source from the content-addressed store, hash-verified

30 return pivotIdx;
31 }
32 static void quickSort(int[] arr, int st, int end){
33 if(st >= end) return;
34 int pi = partition(arr, st, end);
35 quickSort(arr, st, pi-1);
36 quickSort(arr, pi+1, end);
37 }
38
39 public static void main(String[] args) {
40 int[] arr = {6, 6, 3, 1, 5, 5, 4};

Callers 1

mainMethod · 0.95

Calls 1

partitionMethod · 0.95

Tested by

no test coverage detected