Rotate Image at Bloomberg
Medium79.3% acceptance
This problem has 62.5% frequency at Bloomberg.
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 Bloomberg Questions
Two SumEasyAdd Two NumbersMediumMerge IntervalsMediumBest Time to Buy and Sell StockEasyNumber of IslandsMedium
View all Bloomberg questions