matrix/matrix_rotation library

Functions

rotateMatrix(List<List<int>> matrix) → void
Rotates a square matrix (n x n) 90 degrees clockwise in-place.