摘要:
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思考:两步,先对角线交换再上下交换。class Solution {public: void rotate(vector > &matrix) { int n=matrix.size(); int i,j; for(i=0;i<n;i++) { for(... 阅读全文
posted @ 2013-12-13 20:46
七年之后
阅读(179)
评论(0)
推荐(0)
该文被密码保护。 阅读全文
posted @ 2013-12-13 18:43
七年之后
阅读(9)
评论(0)
推荐(0)

浙公网安备 33010602011771号