《CITI》P114
1 数组与字符串
题目:
1.6 Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do this in place?
本文探讨了如何将一个NxN的图像矩阵顺时针旋转90度的问题,并提出了可以在原地进行旋转的方法。该方法适用于每个像素占用4字节的图像。
1.6 Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do this in place?

被折叠的 条评论
为什么被折叠?