Back to Question

Rotate Image

Question Explain

You are given an $n \times n$ 2D matrix representing an image. Rotate the image by 90 degrees (clockwise) in place.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.