Rotate Matrix 90° — JavaScript medium interview problem
You are given an n x n 2D matrix. Rotate the matrix 90 degrees clockwise in-place and return it.
Tags: matrix
Practice this Arrays problem free in the JS Interview Playground with automated tests and unlockable solutions.