Rotate Image at Microsoft
Medium79.3% acceptance
This problem has 62.5% frequency at Microsoft.
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 Microsoft Questions
Two SumEasyAdd Two NumbersMediumMedian of Two Sorted ArraysHardPalindrome NumberEasyContainer With Most WaterMedium
View all Microsoft questions