Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Rotate Image
Bookmark
Input
3x3 Matrix
4x4 Matrix
2x2 Matrix
5x5 Matrix
Custom
matrix
=
[[1,2,3],[4,5,6],[7,8,9]]
ROTATE 90° CW
↻ 90°
1
2
3
4
5
6
7
8
9
algo
master
.
io
Step:
Start: Rotate image 90 degrees clockwise using transpose then reverse approach
0 / 25
Input
3x3 Matrix
4x4 Matrix
2x2 Matrix
5x5 Matrix
Custom
matrix
=
[[1,2,3],[4,5,6],[7,8,9]]
0 / 25
ROTATE 90° CW
↻ 90°
1
2
3
4
5
6
7
8
9
algo
master
.
io
Step:
Start: Rotate image 90 degrees clockwise using transpose then reverse approach