Run time error in sudoku problem


Please help me solve this error, It gives runtime error

@prerna_gupta31
There were many errors in your code.
This is the updated code.

  1. 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.
  2. In this base cases, you forgot to return from that point.
  3. 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.