class Solution { public: vector<int> spiralOrder(vector<vector<int> >& matrix) { vector<int>a; int i=0, j=-1,flag=0; int left = 0,right = matrix[0].size(),top = 0, bottom = matrix.size(); if (matrix.empty()) return a; while...