Given a 2D integer matrix of dimensions M x N, return its transpose. The transpose of a matrix is formed by swapping its rows and columns, turning the element at index [i][j] into the element at…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.