LeetCode 37. Sudoku Solver
Created at 2018-01-15 Updated at 2018-01-21 Category LeetCode
write a program to solve a Sudoku puzzle by filling the empty cells.
empty cells are indicated by the character
you may assume that there will be only one unique solution.
a sudoku puzzle…
…and its solution numbers marked in red.
we can apply backtracking method to solve this problem, firstly, iteratively visit every field of which value is ‘.’ and get all possibile inputs that can be input into.