diff --git a/solutions/54. Spiral Matrix.md b/solutions/54. Spiral Matrix.md index 02d2ed3..31c26fc 100644 --- a/solutions/54. Spiral Matrix.md +++ b/solutions/54. Spiral Matrix.md @@ -83,7 +83,7 @@ public: vectorres; if(matrix.empty()) return res; int m = matrix.size(), n = matrix[0].size(); - const vector>dirs{{0, 1}, {1, 0}, {0, -1}, {-1, 0}}; // 右、下、左、上 + const vector>dirs{ {0, 1}, {1, 0}, {0, -1}, {-1, 0} }; // 右、下、左、上 vectorsteps{n, m-1}; int iDir = 0; // 方向的下标 @@ -99,4 +99,4 @@ public: return res; } }; -``` \ No newline at end of file +```