8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4727c83 commit 5c5363eCopy full SHA for 5c5363e
algorithms/cpp/maximalRectangle/maximalRectangle.cpp
@@ -56,7 +56,7 @@ int maximalRectangle(vector<vector<char> > &matrix) {
56
if (matrix.size()<=0 || matrix[0].size()<=0) return 0;
57
int row = matrix.size();
58
int col = matrix[0].size();
59
- vector< vector<int> > heights(row, vector<int> col);
+ vector< vector<int> > heights(row, vector<int>(col));
60
61
int maxArea = 0;
62
for(int i=0; i<row; i++){
0 commit comments