The biggest spiral submatrix program written in C doesn’t return what’s expected
My program should return the biggest spiral submatrix. For 2×2 matrix with values [[1,2], [4,3]] it returns 2×2 submatrix with same values (as it should), but when I enter 2×3 matrix with values [[1,2,5], [4,3,9]] it doesn’t return anything, just prints that there are no spiral submatrices.