Valid Sudoku — LeetCode
Jan 2, 2021
Here is the question:
The input looks something like this:
With this problem, there are 3 main things that we have to do to determine if our board is valid.
- Check each square
- Check each row
- Check each column
I broke these steps down into 3 separate functions for simplicity.
Here is my solution:
Execution report:
Source code here
Social links here