package leetcode;

/**
 * https://leetcode.com/problems/minimum-limit-of-balls-in-a-bag/
 */
public class Problem1760 {
    public int minimumSize(int[] nums, int maxOperations) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem1760 prob = new Problem1760();
        System.out.println(prob.minimumSize(new int[]{9}, 2)); // 3
        System.out.println(prob.minimumSize(new int[]{2,4,8,2}, 4)); // 2
        System.out.println(prob.minimumSize(new int[]{7,17}, 2)); // 7
    }
}

package leetcode;

/**
 * https://leetcode.com/problems/minimum-limit-of-balls-in-a-bag/
 */
public class Problem1760 {
    public int minimumSize(int[] nums, int maxOperations) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem1760 prob = new Problem1760();
        System.out.println(prob.minimumSize(new int[]{9}, 1)); // 5
        System.out.println(prob.minimumSize(new int[]{9}, 2)); // 3
        System.out.println(prob.minimumSize(new int[]{9}, 3)); // 3
        System.out.println(prob.minimumSize(new int[]{9}, 4)); // 2
        System.out.println(prob.minimumSize(new int[]{2,4,8,2}, 4)); // 2
        System.out.println(prob.minimumSize(new int[]{7,17}, 2)); // 7
    }
}

Update problem 1760