标签:c style class blog code java
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.
For
example,
Given n = 3
,
[ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7, 6, 5 ] ]
Spiral Matrix II,布布扣,bubuko.com
标签:c style class blog code java
原文地址:http://www.cnblogs.com/erictanghu/p/3759429.html