Rotate Image at Amazon
Medium79.3% acceptance
This problem has 62.5% frequency at Amazon.
Problem Description
You are given an `n x n` 2D `matrix` representing an image, rotate the image by **90** degrees (clockwise). You have to rotate the image [**in-place**](<https://en.wikipedia.org/wiki/In-place_algorithm>), which means you have to modify the input 2D matrix directly. **DO NOT** allocate another 2D ma...
Read full problem and hintsTopics
Also asked at 36 companies
More Amazon Questions
Two SumEasyTrapping Rain WaterHardBest Time to Buy and Sell StockEasyNumber of IslandsMediumAdd Two NumbersMedium
View all Amazon questions