Arrays

Rotate Matrix 90°

medium
You are given an n x n 2D matrix. Rotate the matrix 90 degrees clockwise in-place and return it.
Hint steps(0/2 revealed)
  1. 1

    Complete previous step or reveal to unlock this hint.

  2. 2

    Complete previous step or reveal to unlock this hint.