Minesweeper Board Update

Given a Minesweeper board board and one click position (clickRow, clickCol), return the board after applying the click.

Cell meanings:

  • M: an unrevealed mine.
  • E: an unrevealed empty cell....

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: