(int[] array)
| 31 | } |
| 32 | |
| 33 | public static void swapMinMaxBetter(int[] array) { |
| 34 | int minIndex = getMinIndex(array); |
| 35 | int maxIndex = getMaxIndex(array); |
| 36 | swap(array, minIndex, maxIndex); |
| 37 | } |
| 38 | |
| 39 | public static void swapMinMax(int[] array) { |
| 40 | int minIndex = 0; |
no test coverage detected