Skip to content

Commit c7afcc8

Browse files
committed
Runtime: 13 ms (Top 73.09%) | Memory: 11 MB (Top 58.74%)
1 parent 8b816f4 commit c7afcc8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
// Runtime: 13 ms (Top 73.09%) | Memory: 11 MB (Top 58.74%)
12
class Solution {
23
public:
34
int maxCount(int m, int n, vector<vector<int>>& ops) {
4-
5+
56
int mn_i = m, mn_j = n;
67
for(auto &i : ops)
78
mn_i = min(mn_i, i[0]), mn_j = min(mn_j, i[1]);
8-
9+
910
return mn_i * mn_j;
1011
}
11-
};
12+
};

0 commit comments

Comments
 (0)