public class Main { public static void printUniqueTriad(int[] arr, int k) { if (arr == null || arr.length < 3) { return; } for (int i = 0; i < arr.length - 2; i++) { if (i == 0 || arr[i] != arr[i - 1]) { printRest(arr, i, i + 1, arr.length - 1, k - arr[i]); } } } public static vo...