Matrix Transformation
Uber interviews coding interview problem: Given a square matrix and a list of queries, apply transformations in order: rotate 90 degrees clockwise, reflect along the main diagonal, or reflect along the secondary diagonal, and return the final matrix. A clear, practical interview question on matrix transformations.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
