← Swiggy questions
CodingReported in a candidate post, Jan 2021

Rotate a square matrix 90 degrees clockwise

Filed under Swiggy

Given an n x n matrix, rotate it 90 degrees clockwise and return or print the result. Do it in place if possible.

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 Swiggy questions

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