Spiral Matrix I and II
Description https://oj.leetcode.com/problems/spiral-matrix/ https://oj.leetcode.com/problems/spiral-matrix-ii/ Difficulty: 1.5/5.0 star Analysis The solution to these two problems are almost the same. class Solution { public: vector<int> spiralOrder(vector<vector<int> > &matrix) { vector<int> result; if (!matrix.size()) return result; int boundary[4]; //x boundary boundary[0] = 0; boundary[2]...