Word Break II
摘要:
Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all such possible sentences.For example, givens="catsanddog",dict=["cat", "cats", "and", "sand", "dog"].A 阅读全文
posted @ 2013-10-09 14:01 Step-BY-Step 阅读(354) 评论(0) 推荐(0) 编辑