Skip to content

Commit b855aff

Browse files
committed
Fixed style
1 parent 79fa6b9 commit b855aff

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/g3001_3100/s3001_minimum_moves_to_capture_the_queen

1 file changed

+3
-3
lines changed

src/main/java/g3001_3100/s3001_minimum_moves_to_capture_the_queen/Solution.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
public class Solution {
66
public int minMovesToCaptureTheQueen(int a, int b, int c, int d, int e, int f) {
77
if (a == e || b == f) {
8-
if (a == e && a == c && ((d - b) * (d - f) < 0)) {
8+
if (a == e && a == c && (d - b) * (d - f) < 0) {
99
return 2;
1010
}
11-
if (b == f && b == d && ((c - a) * (c - e) < 0)) {
11+
if (b == f && b == d && (c - a) * (c - e) < 0) {
1212
return 2;
1313
}
1414
return 1;
1515
}
1616
if (Math.abs(c - e) == Math.abs(d - f)) {
17-
if (Math.abs(c - a) == Math.abs(d - b) && ((b - f) * (b - d) < 0)) {
17+
if (Math.abs(c - a) == Math.abs(d - b) && (b - f) * (b - d) < 0) {
1818
return 2;
1919
}
2020
return 1;

0 commit comments

Comments
 (0)