Leetcode 566. Reshape the Matrix
Given an m×n matrix, return a new r×c matrix containing the same elements in row-major order if r*c equals m*n; otherwise return the original matrix.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.