leetcode/include/s0037_sudoku_solver.hpp
2022-11-30 18:20:36 +08:00

22 lines
559 B
C++

#ifndef S0037_SUDOKU_SOLVER_HPP
#define S0037_SUDOKU_SOLVER_HPP
#include <algorithm>
#include <cmath>
#include <unordered_map>
#include <vector>
using namespace std;
class S0037 {
public:
void solveSudoku(vector<vector<char>> &board);
bool recusiveSolveSudoku(vector<vector<char>> &board,
vector<unordered_map<char, bool>> &rows,
vector<unordered_map<char, bool>> &cols,
vector<unordered_map<char, bool>> &grids, int row,
int col);
};
#endif