摘要:
Rotate an array ofnelements to the right byksteps.For example, withn= 7 andk= 3, the array[1,2,3,4,5,6,7]is rotated to[5,6,7,1,2,3,4].Note:Try to come... 阅读全文
posted @ 2016-01-02 18:00
sdlwlxf
阅读(162)
评论(0)
推荐(0)
摘要:
问题: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?分析:二维数组a[n][... 阅读全文
posted @ 2016-01-02 13:56
sdlwlxf
阅读(171)
评论(0)
推荐(0)