Solving Spiral Matrix II in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

Example:

Input: 3
Output:
[
 [ 1, 2, 3 ],
 [ 8, 9, 4 ],
 [ 7, 6, 5 ]
]

See the full details of the problem Spiral Matrix II at LeetCode

Originally posted at: @github.com/halfrost/LeetCode-Go