摘要:
/** * 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... 阅读全文
摘要:
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... 阅读全文