I think this is the easiest one in lc

  • 0
        public int MaxCount(int m, int n, int[,] ops) {
            int row = m;
            int col = n;
            for(int i = 0; i < ops.GetLength(0); i++)
                row = Math.Min(ops[i,0], row);
                col = Math.Min(ops[i,1], col);
            return row * col;

Log in to reply

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