b***k 发帖数: 2673 | 1 ☆─────────────────────────────────────☆
wealdg (wwwnet) 于 (Wed Aug 6 18:00:08 2008) 提到:
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);
}
☆─────────────────────────────────────☆
snnn (snnn) 于 (Wed Aug 6 21:52:59 20 |
|