06 2014 档案

摘要:给定一个矩阵,寻找连通域个数:前后左右相同为连通ex:0 1 0 10 1 1 10 0 1 00 1 0 0输出2利用深度搜索思路: 1 public static int getCount(int[][] A) { 2 int result = 0; 3 ... 阅读全文
posted @ 2014-06-15 11:20 kcrosswind 阅读(3054) 评论(0) 推荐(0) 编辑