← Back

Rotate a Matrix By 90 Degrees

Enter the size and elements of your matrix to find its rotation.

Example Input

[
    [1, 2, 3],
    [4, 5, 6], 
    [7, 8, 9]
]

Example Output

[
    [7, 4, 1],
    [8, 5, 2],
    [9, 6, 3]
]
Fill the elements for each cell