Leetcode 54. 螺旋矩阵

模拟螺旋的路线,标记已访问的数据,而后循环便可web class Solution { public: int dx[4] = { 0,1,0,-1 }, dy[4] = { 1,0,-1,0 }, f = 0; const int inf = 0x3f3f3f3f; vector<int> spiralOrder(vector<vector<int>>& matrix)
相关文章
相关标签/搜索