Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Rotate Image
Bookmark
Extra Space
Transpose + Reverse
Four-Way Swap
Input
3x3 Matrix
4x4 Matrix
2x2 Matrix
5x5 Matrix
Custom
matrix
=
[[1,2,3],[4,5,6],[7,8,9]]
ORIGINAL
ROTATED
1
2
3
4
5
6
7
8
9
ORIGINAL
ROTATED
1
2
3
4
5
6
7
8
9
ORIGINAL
ROTATED
1
2
3
4
5
6
7
8
9
ORIGINAL
ROTATED
1
2
3
4
5
6
7
8
9
1
1
ORIGINAL
ROTATED
1
2
3
4
5
6
7
8
9
1
2
3
3
ORIGINAL
ROTATED
1
2
3
4
5
6
7
8
9
1
2
3
ORIGINAL
ROTATED
1
2
3
4
5
6
7
8
9
4
1
5
2
3
5
ORIGINAL
ROTATED
1
2
3
4
5
6
7
8
9
4
1
5
2
6
3
6
ORIGINAL
ROTATED
1
2
3
4
5
6
7
8
9
7
4
1
5
2
6
3
7
ORIGINAL
ROTATED
1
2
3
4
5
6
7
8
9
7
4
1
8
5
2
6
3
8
ORIGINAL
ROTATED
1
2
3
4
5
6
7
8
9
7
4
1
8
5
2
9
6
3
algo
master
.
io
Step:
Start: Rotate 90 degrees clockwise into a new matrix
0 / 14
Input
3x3 Matrix
4x4 Matrix
2x2 Matrix
5x5 Matrix
Custom
matrix
=
[[1,2,3],[4,5,6],[7,8,9]]
0 / 14
algo
master
.
io
Step:
Start: Rotate 90 degrees clockwise into a new matrix