Rotate Image 90 Degrees In Place

Asked at Apple · Coding Questions · Difficulty: Medium · Last asked May 22, 2026

You are given an `n x n` 2D matrix representing an image. Rotate the image by 90 degrees clockwise, **in place**.

Loading the problem…