InterviewDigestInterviewDigest

OA Practice Workspace

Technical2026-08-16

Rotate a given matrix by 90 degrees in a clockwise direction.

AI-Expanded — inferred from the question title, not from the original candidate report

Given an n x n 2D matrix representing an image, rotate the image by 90 degrees in a clockwise direction. You must perform this transformation in-place by modifying the input 2D matrix directly rather than allocating a second matrix to store the result.

Context & Summary

Two coding problems were discussed.

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.