3148. Maximum Difference Score in a Grid
You are given an
m x n
matrixgrid
consisting of positive integers. You can move from a cell in the matrix to any other cell that is either to the bottom or to the right (not necessarily adjacent). The score of a move from a cell with the valuec1
to a cell with the valuec2
isc2 - c1
.You can start at any cell, and you have to make at least one move.
Return the maximum total score you can achieve.