59. 螺旋矩阵 II

class Solution {     public int[][] generateMatrix(int n) {         int [][]res = new int [n][n];         int left = 0;         int right = n-1;         int top = 0;         int bottom = n-1;        
相关文章
相关标签/搜索