In the video for Submatrix Sum 2, how should we implement the code if either of i-1 or j-1 goes out of the matrix?

Will we have to come up with a solution within the code itself?

hello @Doctor_Insult

yeah u need to handle such cases separately using if statements.