Leetcode-Question-648: Replace Words

原文链接:

https://leetcode.com/problems/replace-words/

解析:有优化。

 

Leetcode-Question-676: Implement Magic Dictionary

原文链接:

https://leetcode.com/problems/implement-magic-dictionary/

解析:

 

Leetcode-Question-211: Add and Search Word – Data Structure Design

原文链接:
https://leetcode.com/problems/add-and-search-word-data-structure-design/

题目描述:
211. Add and Search Word – Data structure design
Difficulty: Medium

Design a data structure that supports the following two operations:

search(word) can search a literal word or a regular expression string containing only letters a-z or .. A . means it can represent any one letter.

For example:

Note:
You may assume that all words are consist of lowercase letters a-z.

解析:

Updated 2017.10.12

法2】不用Trie