python beats 22.58 percent
Code\npython3 []\nclass Solution:\n    def maxScore(self, grid: List[List[int]]) -> int:\n        \n        rows = len(grid)\n        cols = len(grid[0])\n     
# Code\n```python3 []\nclass Solution:\n    def maxScore(self, grid: List[List[int]]) -> int:\n        \n        rows = len(grid)\n        cols = len(grid[0])\n        largestMax = [[0 for _ in range(cols)] for _ in range(rows)]\n\n        @cache\n        def findMax(row, col):\n            if row >= rows or col >= cols:\n                return -int(1E9)\n            largestMax[row][col] = max(findMax(row + 1, col), findMax(row, col + 1))\n            return max(grid[row][col], largestMax[row][col])\n\n        findMax(0, 0)\n        res = -int(1E9)\n        for row in range(rows):\n            for col in range(cols):\n                res = max(res, largestMax[row][col] - grid[row][col])\n        return res\n```
['Python3']