摘要:
You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?The rotation can be performed in layers, where you perform a cyclic swap on the edges oneach layer In the frst for loop, we rotate the frst layer (outermost edges) W 阅读全文
posted @ 2013-07-31 23:20
冰点猎手
阅读(485)
评论(0)
推荐(0)