Leetcode 598 Solution
This article provides solution to leetcode question 598 (range-addition-ii)
Access this page by simply typing in "lcs 598" in your browser address bar if you have bunnylol configured.
Leetcode Question Link
https://leetcode.com/problems/range-addition-ii
Solution
class Solution:
def maxCount(self, m: int, n: int, ops: List[List[int]]) -> int:
for a, b in ops:
m = min(a, m)
n = min(b, n)
return m * n