JAVA_Toeplitz Matrix_LeetCode 766


JAVA_Toeplitz Matrix_LeetCode 766

JAVA_Toeplitz Matrix_LeetCode 766 풀이 class Solution { public boolean isToeplitzMatrix(int[][] matrix) { if(matrix.length == 1 && matrix[0].length == 1) return true; for(int i = 1;i < matrix.length;i++) for(int j = 1;j < matrix[i].length;j++) if(matrix[i][j] != matrix[i-1][j-1]) return false; return true; } } * 출처 Toeplitz Matrix - LeetCode Can you solve this real interview question? Toeplitz Matrix - Given an m x n matrix, return true if the matrix is Toeplitz. Otherwise, return false. A matrix ...


#JAVA #JAVA_LeetCode766 #JAVA_ToeplitzMatrix #JAVA_ToeplitzMatrix_LeetCode766 #ToeplitzMatrix_LeetCode766

원문링크 : JAVA_Toeplitz Matrix_LeetCode 766