Skip to content

Commit e55ac23

Browse files
committed
Fixed style
1 parent 0908a09 commit e55ac23

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/g3201_3300/s3283_maximum_number_of_moves_to_kill_all_pawns

1 file changed

+2
-1
lines changed

src/main/java/g3201_3300/s3283_maximum_number_of_moves_to_kill_all_pawns/Solution.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ private int calculateMoves(int x1, int y1, int x2, int y2) {
6868
int y = current[1];
6969
int moves = current[2];
7070
for (int[] move : KNIGHT_MOVES) {
71-
int nx = x + move[0], ny = y + move[1];
71+
int nx = x + move[0];
72+
int ny = y + move[1];
7273
if (nx == x2 && ny == y2) {
7374
return moves + 1;
7475
}

0 commit comments

Comments
 (0)