# Range Addition II (LeetCode 598)

ops are range increments from (0,0). Max cells = product of min rows/cols touched.

```python
def maxCount(m, n, ops):
    for a,b in ops:
        m, n = min(m,a), min(n,b)
    return m*n
```

No need to simulate the matrix.

Drill via [coding interview copilot](https://www.linkjob.ai/coding-interview-copilot/).

(Affiliation: I work on Linkjob AI.)