why are we returning infinity when we reach out of the matrix.We have never done this in prevoius questions of backtracking and recursion we reach out of the matrix we simply returned 0
why are we returning infinity when we reach out of the matrix.We have never done this in prevoius questions of backtracking and recursion we reach out of the matrix we simply returned 0