I am not getting any out. Don't know where i am going wrong

CODE :

@alien
here is your corrected code

please mark your doubt as resolved and rate as well :slight_smile:

The only difference was I was using x<=sx+rn instead of x<sx+rn. Your code is particular to 3X3 suduko as you used the number 3 in isValid function. And in suduko function there is no need of using else after if as we are using return in every if statement. Right?

Yes . also 3 is used because 9 is given in constraints already
Constraints
N=9 Solution exists for input matrix.