[LeetCode] 54. Spiral Matrix 螺旋矩阵

Given an m x n matrix, return all elements of the matrix in spiral order. Example 1: Input: matrix = [[1,2,3],[4,5,6],[7,8,9]] Output: [1,2,3,6,9,8,7,
posted @ 2015-03-24 14:22  Grandyang  阅读(26428)  评论(9)    收藏  举报
Fork me on GitHub