Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 230 Bytes

867-transposeMatrix.md

File metadata and controls

12 lines (12 loc) · 230 Bytes
'''
仍然使用了zip()函数,将矩阵转置即可
'''
class Solution:
    def transpose(self, A):
        """
        :type A: List[List[int]]
        :rtype: List[List[int]]
        """
        return list(zip(*A))