Kindly see into my code and help me to find out the reason behind the TLE.
Link to my Code- https://ide.codingblocks.com/s/198614
Code Giving TLE
Here is your updated code -
One major error was in line 55 where you were taking number < = n in the for loop. number is the value which is to be filled in our sudoku array. So it can range from 1 to 9. I also changed the return type of the function solveSudoku from bool to void. But it doesn’t make much of a difference.
Thank you! I understood.