You are given an m $ imes$ n matrix grid. You start at cell
The product of a path is the result of multiplying the values of all cells traversed along the path.
Return the maximum non negative product of a path from
Note: The modulo operation is applied after determining the maximum product.
Constraints:
m grid.length
n grid[i].length
m, n
grid[i][j]
You are given an m $ imes$ n matrix grid. You start at cell
The product of a path is the result of multiplying the values of all cells traversed along the path.
Return the maximum non negative product of a path from
Note: The modulo operation is applied after determining the maximum product.
Constraints:
m grid.length
n grid[i].length
m, n
grid[i][j]