(int[] arr, int st, int end)
| 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}; |