//url:https://leetcode.com/problems/transpose-matrix/description/
class Solution {
public:
vector> transpose(vector>& A) {
int xsize=A.size();
int ysize=A[0].size();
vector> result;
for(int i=0;i tmp;
for(int j=0;j
- 本文作者: royalchen
- 本文链接: http://www.royalchen.com/2018/07/20/leetcode-867-transpose-matrix/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!