Glassdoor interview question

Rotate a matrix 90 degrees, without using a temporary matrix.

Interview Answer

Anonymous

1 Apr 2017

I panicked... it took me like 5 minutes to start doing something. I had to get to the formula by trial and error. It was quite an unpleasant experience!