正在加载……
← 返回 atlassian 的题目列表
Spiral Matrix
类型:online_judge
atlassian Given an m x n matrix, return all elements of the matrix in spiral order. Input: 3 3 1 2 3 4 5 6 7 8 9 Output: [1, 2, 3, 6, 9, 8, 7, 4, 5] Example Input 3 3 1 2 3 4 5 6 7 8 9