We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb343cc commit 69549f5Copy full SHA for 69549f5
src/main/java/com/fishercoder/solutions/_529.java
@@ -103,6 +103,8 @@ public char[][] updateBoard(char[][] board, int[] click) {
103
} else {
104
/**There is no mines around this cell, so update it to be 'B'*/
105
board[currRow][currCol] = 'B';
106
+
107
+ /**then we'll also check all of its four surrounding cells, if it's 'E'. we'll also update it to be 'B' and offer it into the queue*/
108
for (int i = -1; i < 2; i++) {
109
for (int j = -1; j < 2; j++) {
110
if (i == 0 && j == 0) {
0 commit comments