(int i, int j)
| 19 | |
| 20 | |
| 21 | protected void sort(int i, int j) { |
| 22 | int pivotIndex = (i+j)/2; |
| 23 | swap(pivotIndex, j); |
| 24 | int k = partition(i-1, j); |
| 25 | swap(k, j); |
| 26 | if ((k-i) > 1) sort(i, k-1); |
| 27 | if ((j-k) > 1) sort(k+1, j); |
| 28 | } |
| 29 | |
| 30 | |
| 31 | protected int partition(int left, int right) { |
no test coverage detected