From f89d9051c71a5b5c0aebebec36dcc7cc63042b48 Mon Sep 17 00:00:00 2001 From: harjot3200 Date: Sun, 1 Oct 2017 12:47:28 +0530 Subject: [PATCH] Solver for sudoku --- Backtracking/sudoku_solve.cpp | 102 ++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 Backtracking/sudoku_solve.cpp diff --git a/Backtracking/sudoku_solve.cpp b/Backtracking/sudoku_solve.cpp new file mode 100644 index 000000000..e1e008a91 --- /dev/null +++ b/Backtracking/sudoku_solve.cpp @@ -0,0 +1,102 @@ +#include +using namespace std; +///N=9; +int n=9; + + +bool isPossible(int mat[][9],int i,int j,int no){ + ///Row or col nahin hona chahiye + for(int x=0;x