摘要: /** * Created by lvhao on 2017/7/6. * A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in... 阅读全文
posted @ 2017-07-06 17:57 stAr_1 阅读(231) 评论(0) 推荐(0) 编辑
摘要: import java.util.Arrays; /** * Created by lvhao on 2017/7/6. * Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You sh... 阅读全文
posted @ 2017-07-06 15:46 stAr_1 阅读(199) 评论(0) 推荐(0) 编辑