(int[] array)
| 52 | } |
| 53 | |
| 54 | public static boolean isUnique(int[] array) { |
| 55 | int[] cloned = array.clone(); |
| 56 | Arrays.sort(cloned); |
| 57 | for (int i = 1; i < cloned.length; i++) { |
| 58 | if (cloned[i] == cloned[i - 1]) { |
| 59 | return false; |
| 60 | } |
| 61 | } |
| 62 | return true; |
| 63 | } |
| 64 | |
| 65 | public static int max(int[] array, int left, int right) { |
| 66 | int max = Integer.MIN_VALUE; |
no test coverage detected