Rotate Image
Given
input matrix
=
[
[1,2,3],
[4,5,6],
[7,8,9]
],
rotate the input matrix
in-place
such that it becomes:
[
[7,4,1],
[8,5,2],
[9,6,3]
]Analysis & Solution
Approach 1
Reference
Last updated