1import numpy234class Solution:5 def matrixReshape(self, mat: List[List[int]], r: int, c: int) -> List[List[int]]:6 return numpy.reshape(mat, (r, c)) if r * c == len(mat) * len(mat[0]) else mat
WPM •0 •0
ACC •0 •0
TIME •0