import java.util.*; public class Solution { int maxStep = 0; public int solve (int[][] matrix) { //因为不知道起始点,所以所有的点都要试一遍 for (int i = 0; i < matrix.length; i++) { for (int j = 0; j < matrix[0].length; j++) { count(1,i,j,matrix,-1); ...