LeetCode MEDIUM 48 Rotate Image Summary
Generated by Codex with GPT-5
Quick facts
- Difficulty:
MEDIUM - Problem: Rotate Image
- Main tags:
Array,Math,Matrix
What the problem is really asking
The input is an n x n matrix, and the task is to rotate it 90 degrees clockwise.
The important constraint is that the rotation must happen in place. That means the matrix itself must be rearranged without allocating another full n x n matrix for the final answer.