LeetCode 37. Sudoku Solver
撰写于 2018-01-15 修改于 2018-01-21 分类 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.