You are given an m $ imes$ n integer matrix mat and an integer target.
Choose mat such that the absolute difference between the sum of the chosen elements and target is minimized.
Return the minimum absolute difference.
Constraints:
m == mat.length
n == mat[i].length
m, n
mat[i][j]
target
You are given an m $ imes$ n integer matrix mat and an integer target.
Choose mat such that the absolute difference between the sum of the chosen elements and target is minimized.
Return the minimum absolute difference.
Constraints:
m == mat.length
n == mat[i].length
m, n
mat[i][j]
target