I am getting a wrong output

when I inputted a wrong sudoku instead of printing no possible solution it solved the sudoku kindly look into my code my input test case is written in comments at the end of my program

hello @av8055

ur input is invalid( two 8’s in same row).
the algorithm assumes that given input is valid and it solves on top of that.

if u want to make it generic then first write a logic to validate ur input and then apply ur logoc.

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.