← Nagarro questions

Rotate sub-array of size N in a 2D matrix

Filed under Nagarro

Given a 2D array of dimensions X x Y and a starting coordinate (r, c), rotate a sub-matrix of size N x N starting from that position by 90 degrees 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 Nagarro questions

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