In order to rotate 90 degree:
- swap the matrix top-down
- swap the matrix according the trace line
So that we can get the matrix.
From the problem, we can know that a complexity can be decompose to some simple action.
Error:
N/A
leetcode-48-Rotate Image
阅读 66
2023-08-23
In order to rotate 90 degree:
- swap the matrix top-down
- swap the matrix according the trace line
So that we can get the matrix.
From the problem, we can know that a complexity can be decompose to some simple action.
Error:
N/A
相关推荐
精彩评论(0)