摘要: DescriptionGiven a undirected graph, a node and a target, return the nearest node to given node which value of it is target, return NULL if you can't 阅读全文
posted @ 2017-05-13 23:24 panini 阅读(993) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 adj 阅读全文
posted @ 2017-05-13 22:52 panini 阅读(242) 评论(0) 推荐(0) 编辑