โ† Apple questions
CodingReported in a candidate post, Oct 2025

Rotate a matrix 90 degrees clockwise

Filed under Apple

Given an n x n matrix of integers, rotate it 90 degrees clockwise. Return the rotated matrix (modifying the input in place is preferred, which means using O(1) extra space).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Apple questions

Collected from public candidate posts and coding forums. Updated Nov 2026.