clockwise-rotation-formula

Status: IN

`mat[n-1-j][i]` maps a source position to a 90° clockwise rotation of an n×n matrix; confusing this with counterclockwise (`mat[j][n-1-i]`) would produce incorrect results.

Source: entries/2026/06/06/determine-whether-matrix-can-be-obtained-by-rotation-solution.md

JSON