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