Reveal Cells on a Mine Board
Asked at Pinduoduo · Coding Questions · Difficulty: Medium
A board game hides mines in some cells of a rectangular grid. The player clicks one hidden cell, and your function applies that click and returns the updated board. Clicking a cell that has no mine around it also opens the hidden cells around it, so one click can open a large part of the board.
Loading the problem…