摘要:
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. For 阅读全文
摘要:
Trie 树的一个应用 Design a data structure that supports the following two operations: search(word) can search a literal word or a regular expression string 阅读全文
摘要:
Trie 树实现 Implement a trie with insert, search, and startsWith methods. 参看:http://www.cnblogs.com/grandyang/p/4491665.html 阅读全文