From d2cba8317e1fd7926b724129ef39f6e4f7007632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=A0=91=E6=A3=AE?= Date: Thu, 17 Jan 2019 23:34:19 +0800 Subject: [PATCH] Update 54. Spiral Matrix.md --- solutions/54. Spiral Matrix.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +```