#48

Rotate Image

medium· Math & Geometryruns: 0

You are given an n x n 2D matrix representing an image. Rotate the image 90 degrees clockwise in place. You must modify the input matrix directly without using an auxiliary 2D matrix.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.