0048. Rotate Image
Rotate an n x n matrix 90 degrees clockwise in-place
Transpose + Reverse
Four-way Swap
3x3 Basic
4x4 Example
2x2 Small
5x5 Large
Size:
2x2
3x3
4x4
5x5
Generate
Step
Play
Pause
Reset
Speed:
5x
Ready
Click Step or Play to begin
Current Matrix
Expected Result
Step Log
Status
Waiting...