you give m x n integer matrix mat integer targetChoose integer row matrix absolute difference target sum choose element minimizedreturn minimum absolute differencethe absolute difference number b absolute value b example 1input mat 123456789 target 13output 0explanation one possible choice choose 1 row choose 5 second row choose 7 rowthe sum choose element 13 equal target absolute difference 0example 2input mat 123 target 100output 94explanation the good possible choice choose 1 row Choose 2 second row choose 3 rowthe sum choose element 6 absolute difference 94example 3input mat 12987 target 6output 1explanation the good choice choose 7 rowthe absolute difference 1 Constraintsm matlengthn matilength1 m n 701 matij 701 target 800