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)
相關文章
相關標籤/搜索