Skip to content

Mine Field Problem


You're developing a game called Mine Field. In the game, you need to represent a 10,000x10,000 grid of mines , where each cell in the grid has a 0.002 probability of containing a mine. Build a sparse matrix called minefield to those specs.

Note: you anticipate frequently needing to fetch rows from minefield.


Try with Google Colab See the solution