Write a procedure that transposes a square matrix @m@.
Interface
C++
typedef vector< vector<int>> Matrix;
void transpose(Matrix& m);
Java
publicstaticvoidtranspose(int[][] m);
Python
transpose(m) # returns None
MyPy
transpose(m: list[list[int]]) ->None
Precondition
@m@ is a square matrix
with
.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.