(int[] array)
| 33 | } |
| 34 | |
| 35 | public static boolean validateFull(int[] array) { |
| 36 | for (int i = 0; i < array.length; i++) { |
| 37 | for (int j = i; j < array.length; j++) { |
| 38 | for (int k = i; k <= j; k++) { |
| 39 | int[] cloned = array.clone(); |
| 40 | int pivot = array[k]; |
| 41 | int p = partition(cloned, i, j, pivot); |
| 42 | if (!validate(cloned, i, j, pivot, p)) { |
| 43 | AssortedMethods.printIntArray(cloned); |
| 44 | String val = p >= 0 && p < cloned.length ? String.valueOf(array[i]) : "?"; |
| 45 | System.out.println("pivot: " + pivot + " | " + p + " | " + val); |
| 46 | return false; |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | return true; |
| 52 | } |
| 53 | |
| 54 | public static boolean isUnique(int[] array) { |
| 55 | int[] cloned = array.clone(); |
nothing calls this directly
no test coverage detected