filmov
tv
Leetcode 867 : Transpose Matrix

Показать описание
A transpose matrix, often just called a "transpose," is a matrix obtained by swapping its rows with its columns.
If you have a matrix A with dimensions m × n, its transpose, denoted as A^T, will have dimensions n × m. The entry in the ith row and jth column of A becomes the entry in the jth row and ith column of A^T.