Skip to content

Commit 06d2451

Browse files
authored
Update Solution.java
1 parent 8682b79 commit 06d2451

File tree

1 file changed

+0
-2
lines changed
  • src/main/java/g2101_2200/s2139_minimum_moves_to_reach_target_score

1 file changed

+0
-2
lines changed

src/main/java/g2101_2200/s2139_minimum_moves_to_reach_target_score/Solution.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public int minMoves(int target, int maxDoubles) {
99
if (maxDoubles > 0 && target % 2 == 0) {
1010
maxDoubles--;
1111
target = target / 2;
12-
1312
} else {
1413
if (maxDoubles == 0) {
1514
count = count + target - 1;
@@ -18,7 +17,6 @@ public int minMoves(int target, int maxDoubles) {
1817
target = target - 1;
1918
}
2019
}
21-
2220
count++;
2321
}
2422
return count;

0 commit comments

Comments
 (0)