Please help me solve this error, It gives runtime error
Run time error in sudoku problem
@prerna_gupta31
There were many errors in your code.
This is the updated code.
- Please take care of the indexing. You have taken input in 0 based indexing and you were evaluating the matrix using one based indexing in the canSolve function.
- In this base cases, you forgot to return from that point.
- In the canSolve function, when we evaluate a block of the sudoku matrix, you were making a mistake in the loop termination condition.
If my explanation was able to resolve your doubts, please mark the doubts as resolved.