Rotate an n × n matrix 90° clockwise, except that every element on the main and anti-diagonal stays where it is.
Rotate an n × n matrix 90° clockwise, except that every element on the main and anti-diagonal stays where it is.
Opens with the full question.