![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
力扣
北海南风
这个作者很懒,什么都没留下…
展开
-
力扣-130.被包围的区域(java,深度优先搜索)
提交代码:class Solution { public void solve(char[][] board) { int m = board.length,lines = 0; if(m != 0){ lines = board[0].length; } for (int x = 0; x < m; x++) { dfs(board,x,0).原创 2020-08-18 21:37:03 · 239 阅读 · 0 评论 -
力扣-695.岛屿的最大面积(java,深度搜索)
提交代码:class Solution { public int maxAreaOfIsland(int[][] grid){ int n = grid.length; int m = grid[0].length; int[] count = new int[1]; int max=0,temp=0; for (int i = 0;i<n;i++){ for (int j = 0;j&.原创 2020-08-18 21:34:40 · 239 阅读 · 0 评论