(int[][] matrix, int row)
| 4 | |
| 5 | public class Question { |
| 6 | public static void nullifyRow(int[][] matrix, int row) { |
| 7 | for (int j = 0; j < matrix[0].length; j++) { |
| 8 | matrix[row][j] = 0; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | public static void nullifyColumn(int[][] matrix, int col) { |
| 13 | for (int i = 0; i < matrix.length; i++) { |