Skip to content

Commit 8a259fa

Browse files
fix build
1 parent 2627536 commit 8a259fa

File tree

1 file changed

+6
-6
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+6
-6
lines changed

src/main/java/com/fishercoder/solutions/_764.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ public int orderOfLargestPlusSign(int N, int[][] mines) {
8686
for (int row = 0; row < N; row++) {
8787
for (int col = 0; col < N; col++) {
8888
int k = 0;
89-
while (k <= row && row < N - k && k <= col && col < N - k &&
90-
!banned.contains((row - k) * N + col) &&
91-
!banned.contains((row + k) * N + col) &&
92-
!banned.contains(row * N + col - k) &&
93-
!banned.contains(row * N + col + k)) {
89+
while (k <= row && row < N - k && k <= col && col < N - k
90+
&& !banned.contains((row - k) * N + col)
91+
&& !banned.contains((row + k) * N + col)
92+
&& !banned.contains(row * N + col - k)
93+
&& !banned.contains(row * N + col + k)) {
9494
k++;
9595
}
9696
result = Math.max(result, k);
@@ -122,7 +122,7 @@ public int orderOfLargestPlusSign(int N, int[][] mines) {
122122
}
123123

124124
count = 0;
125-
for (int col = N- 1; col >= 0; col--) {
125+
for (int col = N - 1; col >= 0; col--) {
126126
count = banned.contains(row * N + col) ? 0 : count + 1;
127127
dp[row][col] = Math.min(dp[row][col], count);
128128
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy