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