摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... 阅读全文
posted @ 2015-02-07 19:47 neuzxy 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Spiral Matrix IIGiven an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Given n = 3,You should ret... 阅读全文
posted @ 2015-02-07 16:34 neuzxy 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Spiral MatrixGiven a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example,Given the following ... 阅读全文
posted @ 2015-02-07 15:45 neuzxy 阅读(178) 评论(0) 推荐(0) 编辑