摘要:
题目: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 阅读全文