Leetcode之Spiral Matrix II 问题

问题描述: Given an integer n, generate a square matrix filled with elements from 1 ton2 in spiral order. 示例: For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [
相关文章
相关标签/搜索