MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / quickSort

Method quickSort

Programs/QuickSort.java:16–23  ·  view source on GitHub ↗
(int arr[],int i, int j)

Source from the content-addressed store, hash-verified

14
15
16 public static void quickSort(int arr[],int i, int j){
17 int pivot = i;
18 if(i<j){
19 sort(arr,i,j,pivot);
20 quickSort(arr,i,pivot);
21 quickSort(arr,pivot+1,j);
22 }
23 }
24
25 public static int[] sort(int arr[],int i,int j,int pivot){
26 if(j<=pivot || i>=arr.length){

Callers 1

mainMethod · 0.95

Calls 1

sortMethod · 0.95

Tested by

no test coverage detected