摘要:
题目: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.思路: 回溯法,当有可行解时返回代码: 1 class Solution { 2 bool isValid(vector<vector<char> >& board, int x, int y) 3 阅读全文
posted @ 2013-05-06 23:34
tanghulu321
阅读(133)
评论(0)
推荐(0)
浙公网安备 33010602011771号