CodingMan.cc

Code Your True Nature

題目在此 566. Reshape the Matrix

實作出 MATLAB 裡面的 reshape 函式
給定一個 matrix 與新的長寬 r, c

我們要做的事情就是將 matrix 資料擺放成 r, c 的形狀

image 53
0%