54 螺旋矩阵

解题思路,每一层都是这个顺序(红绿蓝紫) class Solution { public List < Integer > spiralOrder(int[][] matrix) { List ans = new ArrayList(); //存储结果 if (matrix.length == 0) return ans; int r
相关文章
相关标签/搜索