
矩阵
binling
这个作者很懒,什么都没留下…
展开
-
Rotate Image
顺时针把一个图像翻转90度。原创 2014-07-31 11:40:03 · 427 阅读 · 0 评论 -
Spiral Matrix II
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7,原创 2014-12-29 16:14:12 · 452 阅读 · 0 评论 -
Spiral Matrix
Given a matrix ofmn elements (mrows, n columns), return all elements of the matrix in spiral order. For example, Given the following matrix: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ] You shoul原创 2014-12-29 15:11:54 · 410 阅读 · 0 评论