0059 Spiral Matrix II
Warning
This post is more than a year old. Information may be outdated.
Solved at: 230209
Question
Given a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order.
Solution
Comments