摘要: Find the number connected component in the undirected graph. Each node in the graph contains a label and a list of its neighbors. (a connected compone 阅读全文
posted @ 2017-10-31 11:17 jasminemzy 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that: Notice Return 0 i 阅读全文
posted @ 2017-10-31 05:21 jasminemzy 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Six degrees of separation is the theory that everyone and everything is six or fewer steps away, by way of introduction, from any other person in the 阅读全文
posted @ 2017-10-31 01:45 jasminemzy 阅读(130) 评论(0) 推荐(0) 编辑