Skip to content

Commit 08e575c

Browse files
committed
3
1 parent d049142 commit 08e575c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

SpiralMatrix/SpiralMatrix.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
class Solution {
22
public:
33
vector<int> spiralOrder(vector<vector<int> > &matrix) {
4-
vector<int> result;
5-
if (matrix.empty()) {
6-
return result;
7-
}
8-
int row = matrix.size();
9-
int col = matrix[0].size() + 1;
4+
vector<int> result;
5+
if (matrix.empty()) {
6+
return result;
7+
}
8+
int row = matrix.size();
9+
int col = matrix[0].size() + 1;
1010
int dir[4][2] = {0, 1, 1, 0, 0, -1, -1, 0};
1111
int x = 0;
1212
int y = -1;

0 commit comments

Comments
 (0)