LeetCode

Reshape the Matrix

Click here for an explanation.