摘要: 1198. SubstringDescriptionDr lee cuts a string S into N pieces,s[1],…,s[N]. Now, Dr lee gives you these N sub-strings: s[1],…s[N]. There might be several possibilities that the string S could be. For example, if Dr. lee gives you three sub-strings {“a”,“ab”,”ac”}, the string S could be “aabac”,”aaca 阅读全文
posted @ 2012-03-15 21:16 王春明 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 1194. Message FloodTotal:23747Accepted:4451Rating:3.1/5.0(78 votes)DescriptionWell, how do you feel about mobile phone? Your answer would probably be something like that “It’s so convenient and benefits people a lot”. However, if you ask Merlin this question on the New Year’s Eve, he will definitely 阅读全文
posted @ 2012-03-15 00:22 王春明 阅读(288) 评论(0) 推荐(0) 编辑