Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 231 Bytes

README.md

File metadata and controls

6 lines (5 loc) · 231 Bytes

brutal force

Go through each of the spot and mark the number appeared for row, col, and block.
To mark each of the block, we can use (i/3) * 3 + (j/3) to mark each of the block in the board.

time: O(81)
space: O(993)