mirror of
https://github.com/20kaushik02/leetcode-gulag.git
synced 2025-12-06 10:54:07 +00:00
21 lines
653 B
C++
21 lines
653 B
C++
#include "soln.hpp"
|
|
|
|
int main()
|
|
{
|
|
vector<vector<char>> board{
|
|
{'5', '3', '.', '.', '7', '.', '.', '.', '.'},
|
|
{'6', '.', '.', '1', '9', '5', '.', '.', '.'},
|
|
{'.', '9', '8', '.', '.', '.', '.', '6', '.'},
|
|
|
|
{'8', '.', '.', '.', '6', '.', '.', '.', '3'},
|
|
{'4', '.', '.', '8', '.', '3', '.', '.', '1'},
|
|
{'7', '.', '.', '.', '2', '.', '.', '.', '6'},
|
|
|
|
{'.', '6', '.', '.', '.', '.', '2', '8', '.'},
|
|
{'.', '.', '.', '4', '1', '9', '.', '.', '5'},
|
|
{'.', '.', '.', '.', '8', '.', '.', '7', '9'}};
|
|
bool answer = true;
|
|
Solution soln;
|
|
cout << "Validated sudoku correctly? " << soln.test(board, answer) << endl;
|
|
return 0;
|
|
} |