Skip to content

Commit 05227d8

Browse files
authored
Update Solution.java
1 parent 2f6873e commit 05227d8

File tree

1 file changed

+0
-2
lines changed
  • src/main/java/g1701_1800/s1760_minimum_limit_of_balls_in_a_bag

1 file changed

+0
-2
lines changed

src/main/java/g1701_1800/s1760_minimum_limit_of_balls_in_a_bag/Solution.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ public class Solution {
77
public int minimumSize(int[] nums, int maxOperations) {
88
int left = 1;
99
int right = 1_000_000_000;
10-
1110
while (left < right) {
1211
int mid = left + (right - left) / 2;
1312
if (operations(nums, mid) > maxOperations) {
@@ -24,7 +23,6 @@ private int operations(int[] nums, int mid) {
2423
for (int num : nums) {
2524
operations += (num - 1) / mid;
2625
}
27-
2826
return operations;
2927
}
3028
}

0 commit comments

Comments
 (0)