摘要:
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?N*N的矩阵代表的图片,每个像素4 bytes, 旋转90度public statci void rotate(int [][] matrix, int n){ for (int layer =0; layer <n/2; ++layer){ int fi... 阅读全文
posted @ 2013-03-19 14:18
zhangfei2333
阅读(134)
评论(0)
推荐(0)
浙公网安备 33010602011771号