所在目录:
教材与参考资料 / 程序设计类 / 数据结构&算法 / 算法 / 面试与力扣题目详解 / Leetcode题目和解答 / java-leetcode / sudoku-solver
下载地址:
文本预览:
## Just Combine [Valid Sudoku](../valid-sudoku) and [N-Queens](../n-queens)
the only difference form [N-Queens](../n-queens) is the `possibility checker`.
but, good news is that we have done [Valid Sudoku](../valid-sudoku).
## Time Limit
The first version looks like [N-Queens](../n-queens) may exceed the time limit.
### Fail fast.
In this problem, if any grid is not solved, trying any further is needless.
So, let `solveSudoku` return a flag to warn this way is blocked.
点赞
回复