Given an N x N 2D matrix, rotate the matrix by an angle that is a multiple of 90 degrees (90, 180, 270, etc.) in-place if possible, or return the rotated matrix.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.