Closed GaiNingMorris closed 4 years ago
What is the point to separate the first row and column with the rest ones ? why not just check at once:
for (int i = 0; i < rowCount; i++) { for (int j = 0; j < columnCount; j++) { if (matrix[i][j] == 0) { matrix[i][0] = 0; matrix[0][j] = 0; } } }
What is the point to separate the first row and column with the rest ones ? why not just check at once:
for (int i = 0; i < rowCount; i++) { for (int j = 0; j < columnCount; j++) { if (matrix[i][j] == 0) { matrix[i][0] = 0; matrix[0][j] = 0; } } }