From 3ffe4a788e27b1d93e80b66ed8c8091742d32447 Mon Sep 17 00:00:00 2001 From: Thunderb07t Date: Tue, 29 Oct 2019 23:09:06 +0530 Subject: [PATCH] Added Sudoku Solver in C++ Programs folder. --- CPP/sudokuSolver.cpp | 102 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 CPP/sudokuSolver.cpp diff --git a/CPP/sudokuSolver.cpp b/CPP/sudokuSolver.cpp new file mode 100644 index 0000000..2c01ea7 --- /dev/null +++ b/CPP/sudokuSolver.cpp @@ -0,0 +1,102 @@ +/* +Input the sudoku where first input denotes the no of test cases. +Then input a 2d 9X9 array , where 0 denotes an empty space. +*/ +#include +using namespace std; +bool canplace(int mat[][9],int i,int j,int n,int number) +{ + // checking in row and column; + for(int x=0;x>t; + while(t--) + { + int n=9; + int mat[9][9]; + for(int i=0;i>mat[i][j]; + } + } + cout<