Rotate matrix by 90 degrees
Q. You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). You need to do this in place.
Question asked in Amazon Google Facebook Design
Q. You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). You need to do this in place.
Question asked in Amazon Google Facebook Design