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 b77f652 commit 5984345Copy full SHA for 5984345
src/main/java/com/fishercoder/solutions/_1011.java
@@ -58,7 +58,7 @@ public int shipWithinDays(int[] weights, int D) {
58
59
// Binary search
60
while (lower <= upper) {
61
- currentGuess = (upper + lower)/2;
+ currentGuess = (upper + lower) / 2;
62
if (daysToShip(weights, currentGuess) <= D) {
63
bestGuess = currentGuess;
64
upper = currentGuess - 1;
0 commit comments