Given an m n integer matrix mat and an integer k, return a matrix answer of size m n where each cell answer[i][j] is the sum of all elements mat[r][c] that satisfy:
m
n
Constraints:
m == mat.length
n == mat[i].length
m, n, k
mat[i][j]
Given an m n integer matrix mat and an integer k, return a matrix answer of size m n where each cell answer[i][j] is the sum of all elements mat[r][c] that satisfy:
m
n
Constraints:
m == mat.length
n == mat[i].length
m, n, k
mat[i][j]