From b89de536f4bc2504ffac3f109dd29b2bdeab04fd Mon Sep 17 00:00:00 2001 From: KeshavAnandCode Date: Sat, 18 Apr 2026 11:33:37 -0500 Subject: [PATCH] readonly fix --- solutions/practice/Minesweeper.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/solutions/practice/Minesweeper.java b/solutions/practice/Minesweeper.java index 983f24d..58de244 100644 --- a/solutions/practice/Minesweeper.java +++ b/solutions/practice/Minesweeper.java @@ -1,8 +1,8 @@ // General imports -import java.util.*; import java.io.*; import java.math.*; +import java.util.*; public class Minesweeper { static char[][] input; @@ -13,7 +13,6 @@ public class Minesweeper { static int b; public static void main(String[] args) { - Scanner sc = new Scanner(System.in); // Write code here @@ -50,11 +49,9 @@ public class Minesweeper { String s = String.format("%.3f", maxProb); System.out.println(s); } - } public static void solve(int index, char[][] grid, int bombs) { - if (index >= r * c) { if (bombs == b && isValid(grid)) { addPoss(grid); @@ -86,7 +83,6 @@ public class Minesweeper { } return; - } public static boolean isValid(char[][] grid) { @@ -118,9 +114,7 @@ public class Minesweeper { if (grid[i][j] == '#') { safe[i][j]++; } - } } } - }