classSolution { publicintminimumSize(int[] nums, int maxOperations) { intleft=1, right = (int) 1e9; while (left < right) { intmid= left + right >> 1; longs=0; for (int x : nums) { s += (x - 1) / mid; } if (s <= maxOperations) right = mid; else left = mid + 1; } return right; } }