JAVA_Transpose Matrix_LeetCode 867 풀이 class Solution { public int[][] transpose(int[][] matrix) { int[][] res = new int[matrix[0].length][matrix.length]; for (int i = 0; i < matrix[0].length; i++) { for (int j = 0; j < matrix.length; j++) { res[i][j] = matrix[j][i]; } } return res; } } * 출처 Transpose Matrix - LeetCode Can you solve this real interview question? Transpose Matrix - Given a 2D integer array matrix, return the transpose of matrix. The transpose of a matrix is the matrix flipped over...
#JAVA
#JAVA_LeetCode867
#JAVA_TransposeMatrix
#JAVA_TransposeMatrix_LeetCode867
#TransposeMatrix_LeetCode867
원문링크 : JAVA_Transpose Matrix_LeetCode 867