Sobes.tech
Junior — Senior

Rotate a square matrix by 90° clockwise

livecode

Task condition

Given a two-dimensional square matrix. It is required to rotate it 90 degrees clockwise, using only a constant amount of additional memory.