摘要: 题目:Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.F... 阅读全文
posted @ 2014-07-29 09:27 爱做饭的小莹子 阅读(3057) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.题解:这道题看所给的字符串数组里面有多少个是同一个变形词变的。这道... 阅读全文
posted @ 2014-07-29 08:55 爱做饭的小莹子 阅读(3243) 评论(0) 推荐(0) 编辑
摘要: 题目:Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirected graph serialization:Nodes are label... 阅读全文
posted @ 2014-07-29 05:29 爱做饭的小莹子 阅读(11042) 评论(3) 推荐(1) 编辑