0

Minesweeper Board
Given a \$m × n\$ Minesweeper density map, generate the mine map where \$1\$ stands for a mine, \$0\$ stands for no mine.
Test Case
[8, 8] // corresponding to m × n where m is number of rows, n is number of columns
Density Map:
0 0 1 1 0 0 0 0
0 5 2 2 4 0 0 0
0 5 0 2 3 0 7 0
3 ...