w****g 发帖数: 44 | 1 1. Write a Java method that, given a square matrix of integers, returns
true if there is at least one row, column, or diagonal that is all zero. The
signature should be:
class MatrixZeroTest {
enum TestType { Row, Column, Diagonal }
public static boolean allZeros(int[][] matrix, TestType type);
} |
|