成吉思(刷)
Thursday, February 11, 2016
LeetCode Q48: Rotate Image
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?
Rotate layer by layer. In each layer move 4 elements in the same time.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment