Problem 867 · Easy

Transpose Matrix

Swap the rows and columns of a matrix so each cell moves to its mirrored position. The visual shows the grid changing shape from rows-by-columns to columns-by-rows.

Open the interactive visualisation