U1S1,看题解还是去leetcode上看,上面大佬讲的很清楚 public boolean hasPath(char[] matrix, int rows, int cols, char[] str) { char[][] board = new char[rows][cols]; for (int i = 0; i < rows ; i++) { for(int j = 0; j < cols; j++) { board[i][j] = matrix[i*cols + j]; }...