Reveal Cells After a Click
Asked at Nuro · Coding Questions · Difficulty: Medium
A grid of hidden cells, some of which hide mines, is shown to a player who clicks one cell. Depending on what is under the click, the cell is revealed and, when there are no mines nearby, the reveal spreads outward to the neighbouring cells. Given the board and the click position, apply the reveal and return the updated board.
Loading the problem…
More Nuro interview questions
- Thread-Safe Job Scheduler with Cancellation
- Thread-Safe Cache with Lock and Condition Variable
- Design a Multistage CPU and GPU Job Scheduler
- Cumulative Deduped Time Calculation
- Track Top-2 Maximum Among N Children
- Merge Detections from Multiple Vision Systems (Bounding Box Fusion)