You're developing a game called Mine Field. In the game, you need to represent a 10,000x10,000 grid of mines :material-mine:, 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
.