摘要: Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen 阅读全文
posted @ 2018-09-26 06:28 elsie12 阅读(78) 评论(0) 推荐(0)
摘要: There are n cities connected by m flights. Each fight starts from city u and arrives at v with a price w. Now given all the cities and fights, togethe 阅读全文
posted @ 2018-09-26 03:09 elsie12 阅读(157) 评论(0) 推荐(0)