2023 Dec LC challenge
今天在上大提琴課前坐在711刷,好險今天題目EZ。
題目
就是轉置矩陣, 這題比較容易, 今天又是禮拜天, 肯定要快樂水一篇。
Given a 2D integer array matrix, return the transpose of matrix.
The transpose of a matrix is the matrix flipped over its main diagonal, switching the matrix’s row and column indices.
My Code
|
|