摘要: 经典dfs将当前位置传入,标记和当前点一类的点,同时进行计数 class Solution { public int[] pondSizes(int[][] land) { List<Integer> res = new LinkedList<>(); int m = land.length,n = 阅读全文
posted @ 2020-11-08 20:10 浅滩浅 阅读(194) 评论(0) 推荐(0) 编辑