Simple Python Max Gaps Product
\nclass Solution:\n    def maxArea(self, h: int, w: int, horizontalCuts: List[int], verticalCuts: List[int]) -> int:\n        horizontalCuts.sort()\n        ver
```\nclass Solution:\n    def maxArea(self, h: int, w: int, horizontalCuts: List[int], verticalCuts: List[int]) -> int:\n        horizontalCuts.sort()\n        verticalCuts.sort()\n        \n        def getGap(arr, n):\n            prev = 0\n            res = 0\n            for i in range(len(arr)):\n                res = max(arr[i]-prev, res)\n                prev = arr[i]\n                \n            return max(n-prev, res)\n    \n        return (getGap(horizontalCuts, h) * getGap(verticalCuts, w)) % (10**9 + 7)\n```\n\n**Another One**\n```\nclass Solution:\n    def maxArea(self, h: int, w: int, H: List[int], V: List[int]) -> int:\n        def get_max_gap(arr : List[int]) -> int:\n            # returns max gap from arr\n            res = 0\n            for i in range(1, len(arr)):\n                res = max(res, arr[i] - arr[i-1])\n            return res\n\n        M = 10**9 + 7\n        H = [0] + sorted(H) + [h]\n        V = [0] + sorted(V) + [w]\n        return (get_max_gap(H) * get_max_gap(V)) % M\n```
['Python3']