摘要: Shortest Distance from All Buildings 要点: 这种没有weight的distance题,首先想到dfs/bfs。这题因为是最短距离,所以用bfs。注意不同于Surrounded Regions,这题不是连通渲染,而是对每个’1’值点作为起点单独的bfs,而不是并行 阅读全文
posted @ 2016-07-14 20:14 absolute100 阅读(168) 评论(0) 推荐(0) 编辑