[LeetCode]59.Spiral Matrix II

【题目】 Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order. For example, Givenn=3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7, 6,
相关文章
相关标签/搜索