Problem 566 · Easy

Reshape the Matrix

Reshape an m x n matrix to r x c matrix where m*n == r*c.

Open the interactive visualisation