Implement the Minesweeper click(row, col) operation and a function to print the board. Rules:
(
-
If the clicked cell is a mine, reveal it and indicate that the game is lost.
(
-
If the clicked cell has zero adjacent mines, recursively reveal all neighboring cells.
(
-
Otherwise, reveal the number of adjacent mines for that cell. Describe the data structures you will use to track states and neighbors, the traversal strategy (BFS or DFS) and how you prevent revisiting cells, and analyze time and space complexity.