Rotate matrix

Here’s the clean summary β€” no code, just concepts:


πŸ” Transpose


πŸ”„ Row Reverse


πŸ”„ Column Reverse


πŸ”„ Rotations (NxN Matrix)

βœ… 90Β° Clockwise


βœ… 180Β°


βœ… 270Β° Clockwise (same as 90Β° CCW)


🧠 Mental Shortcut

That’s the whole rotate-matrix game.