sir my code is working completely but it is returning false instead of true after printing sudoku its right still its returing false why???
Sir my doubt is in sudoku solver
@tejasddongare your code is fine
you were printing “not possible” with a wrong way!
print it only when ans==false
sir but why we have to check ans==false
if(false)
this should be false isnt it??
as if it is returning true only than it should enter in if statement isnt it???
if(true) only then it should enter isnt it??
in the if statement you are printing “not possible” , so when is the sudoku solve not possible?
only when the answer is false!
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.