Leetcode59

代碼 public class Solution { public int[][] generateMatrix(int n) { int[][] res = new int[n][n]; int total = n*n; int num = 1; int rowBegin = 0; int rowEnd = n-1; int colBegin = 0; int colEnd = n-1; whi
本站公眾號
   歡迎關注本站公眾號,獲取更多信息