Minesweeper Board Reveal

Given a Minesweeper board board:

  • -1 denotes a mine.
  • 0 denotes an unrevealed safe cell.
  • A cell has up to eight neighboring cells.

Implement the reveal operation for one click at (r, c) ...

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: