Cody

Problem 43012. Rotate array 90 degrees

Created by Rani V.S in Community

Rotate the given matrix by 90 degrees.

Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

Solution Stats

92.94% Correct | 7.06% Incorrect
Last solution submitted on May 17, 2019