= new boolean[m][n];
// 从 (0, 0) 点开始进行 dfs 操作,从上、下、左、右4个方向递归调用
return this.dsf(visited, m,...n, 0, 0, k);
}
private int dsf(boolean[][] visited, int row, int col, int i, int j, int k) {...(visited, row, col, i + 1, j, k) + dsf(visited, row, col, i - 1, j, k)
+ dsf(visited, row, col..., i, j + 1, k) + dsf(visited, row, col, i, j - 1, k);
}
private boolean isAccessDenied(int i, int...dsf(visited, row, col, i + 1, j, k)
+ dsf(visited, row, col, i, j + 1, k) ;
}
private