(int[] array, int left, int right)
| 63 | } |
| 64 | |
| 65 | public static int max(int[] array, int left, int right) { |
| 66 | int max = Integer.MIN_VALUE; |
| 67 | for (int i = left; i <= right; i++) { |
| 68 | max = Math.max(array[i], max); |
| 69 | } |
| 70 | return max; |
| 71 | } |
| 72 | |
| 73 | public static int randomInt(int n) { |
| 74 | return (int) (Math.random() * n); |
no outgoing calls
no test coverage detected