Skip to content

Commit d2806d9

Browse files
authored
Update Solution.java
1 parent 6a7c8e9 commit d2806d9

File tree

1 file changed

+0
-3
lines changed
  • src/main/java/g1001_1100/s1033_moving_stones_until_consecutive

1 file changed

+0
-3
lines changed

src/main/java/g1001_1100/s1033_moving_stones_until_consecutive/Solution.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ private int minMoves(int x, int y, int z) {
1212
if (y - x <= 2 || z - y <= 2) {
1313
return 1;
1414
}
15-
1615
return 2;
1716
}
1817

@@ -23,10 +22,8 @@ private int maxMoves(int x, int z) {
2322
public int[] numMovesStones(int a, int b, int c) {
2423
int[] t = {a, b, c};
2524
Arrays.sort(t);
26-
2725
int min = minMoves(t[0], t[1], t[2]);
2826
int max = maxMoves(t[0], t[2]);
29-
3027
return new int[] {min, max};
3128
}
3229
}

0 commit comments

Comments
 (0)