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…
More Apple interview questions
- LLM conceptual questions
- Implement a Two-Hidden-Layer MLP with Backpropagation in NumPy
- Compare PPO, DPO, and GRPO
- Implement a Vision Transformer (ViT) from Scratch
- Sample from a Gaussian Distribution Using Only Uniform Sampling
- Diagnose a CTR Drop After a Ranking Model Launch