[Python] SHORT, Easy List Comprehension
Reshape the Matrix\nIdea\n Fisrt we check if the matrix can be transformed\n Form one Dimension matrix OneD from given matrix mat by traversing row-wise\n Then 
# Reshape the Matrix\n**Idea**\n* Fisrt we check if the matrix can be transformed\n* Form one Dimension matrix `OneD` from given matrix **mat** by traversing row-wise\n* Then enter elements in the result of dimensions `r*c` one by one \xA0 \xA0 \xA0\n\n**Complexity**\n* *Time Complexity* :- `O(m*n)`\n* *Space Complexity* :- `O(m*n)`\n\n```\nclass Solution:\n    def matrixReshape(self, mat: List[List[int]], r: int, c: int) -> List[List[int]]:\n        m, n = len(mat), len(mat[0])\n        if not m*n == r*c: return mat\n        OneD = [mat[i][j] for i in range(m) for j in range(n)]\n        return [OneD[i*c:(i+1)*c] for i in range(r)]\n```\n\n*Please upvote if you like the solution and comment if have any queries*. \xA0 \xA0 \xA0 \xA0
['Python']