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