摘要: 59. 螺旋矩阵 II 这道题困扰了我很久,一些边界值控制比较繁琐,但是偶然发现按照以下方法写,在Leetcode可以AC。 class Solution { public static int[][] generateMatrix(int n) { int num = 1; int x = 0; 阅读全文
posted @ 2022-08-31 16:45 护发师兄 阅读(23) 评论(0) 推荐(0) 编辑