Rotate Image Flashcards

1
Q

Rotate Image

You are given an n x n 2D matrix representing an image.

Rotate the image by 90 degrees (clockwise).

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly