标签:
题目链接:https://leetcode.com/problems/valid-sudoku/
题目:
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.
The Sudoku board could be partially filled, where empty cells are filled with the character ‘.‘
.
A partially filled sudoku which is valid.
Note:
A valid Sudoku board (partially filled) is not necessarily solvable. Only the filled cells need to be validated.
思路:
每行、每列、每个黑粗线内小方块的数分别用HashSet保存判断是否唯一。
算法:
标签:
原文地址:http://blog.csdn.net/yeqiuzs/article/details/51628530