Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Making
mine_locations
an optional parameter makes zero sense. If there're no mines, pass the empty list as the argument to the function yourself like any sane person would do (although having zero mines in Minesweeper doesn't make any sense either). As of now, it's not even documented what should be the default case.What does "valid" mean? Fail how?
Why does this requirements exist in the first place? Assuming we're supposed to check whether the given mine locations are actually on the board, it might make sense to perform such validation IRL, but it doesn't add any value to the task here.
It's not stated which of these represents the rows and which represents the columns.
No sample tests.
This comment is hidden because it contains spoiler information about the solution