Microsoft interview question

Flip a two-dimensional array.

Interview Answer

Anonymous

Aug 7, 2018

Creating a basic formula applicable for all the indexes transforming into the new indexes. Going through the matrix just one and inserting the value at the new index.