We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f6873e commit 05227d8Copy full SHA for 05227d8
src/main/java/g1701_1800/s1760_minimum_limit_of_balls_in_a_bag/Solution.java
@@ -7,7 +7,6 @@ public class Solution {
7
public int minimumSize(int[] nums, int maxOperations) {
8
int left = 1;
9
int right = 1_000_000_000;
10
-
11
while (left < right) {
12
int mid = left + (right - left) / 2;
13
if (operations(nums, mid) > maxOperations) {
@@ -24,7 +23,6 @@ private int operations(int[] nums, int mid) {
24
23
for (int num : nums) {
25
operations += (num - 1) / mid;
26
}
27
28
return operations;
29
30
0 commit comments