[LeetCode] 566. Reshape the Matrix - 문제풀이 Description 주어진 2차원 배열(행렬)을 rxc의 행렬로 재구성하는 문제입니다. In MATLAB, there is a handy function called reshape which can reshape an m x n matrix into a new one with a different size r x c keeping its original data. You are given an m x n matrix mat and two integers r and c representing the number of rows and the number of columns of the wanted reshaped matrix. The reshaped matrix should be filled with al.. 알고리즘/LeetCode 2022. 1. 21. 00:24