我已经通过这道算法题! 给定一个整数n,将数字1到n2n^2n2按螺旋的顺序填入n×n的矩阵 例如: 给出的n=3, 你应该返回如下矩阵: [↵ [ 1, 2, 3 ],↵ [ 8, 9, 4 ],↵ [ 7, 6, 5 ...
https://gw-c.nowcoder.com/api/sparta/jump/link?link=https%3A%2F%2Fwww.nowcoder.com%2FquestionTerminal%2F25ec7a8bf1954a449a13a901e382600d