Solution using numpy (~136ms). First check dimension conditions, then reshape with numpy. import numpy as np class Solution(object): def matrixReshape(self, ...
確定! 回上一頁