← Amazon questions

Rotate matrix 90 degrees

Filed under Amazon · Also reported at OYO, Soliton Technologies

Given an N x N 2D matrix representing an image, rotate the image 90 degrees anti-clockwise in-place.

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

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