0048. Rotate Image

Rotate an n x n matrix 90 degrees clockwise in-place

Transpose + Reverse
Four-way Swap
Speed: 5x
Ready
Click Step or Play to begin

Current Matrix

Expected Result

Step Log

Status

Waiting...