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