There was an error while loading. Please reload this page.
1 parent 8682b79 commit 06d2451Copy full SHA for 06d2451
src/main/java/g2101_2200/s2139_minimum_moves_to_reach_target_score/Solution.java
@@ -9,7 +9,6 @@ public int minMoves(int target, int maxDoubles) {
9
if (maxDoubles > 0 && target % 2 == 0) {
10
maxDoubles--;
11
target = target / 2;
12
-
13
} else {
14
if (maxDoubles == 0) {
15
count = count + target - 1;
@@ -18,7 +17,6 @@ public int minMoves(int target, int maxDoubles) {
18
17
target = target - 1;
19
}
20
21
22
count++;
23
24
return count;
0 commit comments