package leetcode;

/**
 * https://leetcode.com/problems/largest-time-for-given-digits/
 */
public class Problem949 {
    public String largestTimeFromDigits(int[] A) {
        // TODO
        return "";
    }

    public static void main(String[] args) {
        Problem949 prob = new Problem949();
    }
}

package leetcode;

/**
 * https://leetcode.com/problems/largest-time-for-given-digits/
 */
public class Problem949 {
    public String largestTimeFromDigits(int[] A) {
        // TODO
        return "";
    }

    public static void main(String[] args) {
        Problem949 prob = new Problem949();
        System.out.println(prob.largestTimeFromDigits(new int[]{1, 2, 3, 4})); // 23:41
        System.out.println(prob.largestTimeFromDigits(new int[]{5, 5, 5, 5})); //
    }
}

Update problem 949