Microsoft | Onsite | Transpose Matrix
Anonymous User
2304

Date: Nov 2019

https://leetcode.com/problems/transpose-matrix/ in place. I was able to solve this . The follow up question was what if the rows and column lenth are different ( M X N matrix ).

I wasn't able to solve the followup at that moment. Any idea how to do it ? The hint given by the interviewer was to treat it as a one dimentional array instead of a 2D array.

Comments (12)