Intuitive Javascript Solution

  • 0
    var maxCount = function(m, n, ops) {
        let minRow = m;
        let minCol = n;
        // find overlap of the operators
        for (const op of ops) {
            minRow = Math.min(minRow, op[0]);
            minCol = Math.min(minCol, op[1]);
        return minRow * minCol;

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.