Loading...
Engaged employer
Rotate a 2D matrix in linear time.
Anonymous
You can't, you have to touch all the elements once, so it has to be n^2 time at least.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.