@@ -0,0 +1,1220 @@
+%22%22%22Leetcode 211. Add and Search Word - Data structure design%0AMedium%0A%0AURL: https://leetcode.com/problems/add-and-search-word-data-structure-design/%0A%0ADesign a data structure that supports the following two operations:%0A%0Avoid addWord(word)%0Abool search(word)%0Asearch(word) can search a literal word or a regular expression string containing%0Aonly letters a-z or .. A . means it can represent any one letter.%0A%0AExample:%0AaddWord(%22bad%22)%0AaddWord(%22dad%22)%0AaddWord(%22mad%22)%0Asearch(%22pad%22) -%3E false%0Asearch(%22bad%22) -%3E true%0Asearch(%22.ad%22) -%3E true%0Asearch(%22b..%22) -%3E true%0A%0ANote:%0AYou may assume that all words are consist of lowercase letters a-z.%0A%22%22%22%0A%0A%0Aclass WordDictionary(object):%0A%0A    def __init__(self):%0A        %22%22%22%0A        Initialize your data structure here.%0A        %22%22%22%0A        pass%0A%0A    def addWord(self, word):%0A        %22%22%22%0A        Adds a word into the data structure.%0A        :type word: str%0A        :rtype: None%0A        %22%22%22%0A        pass%0A%0A    def search(self, word):%0A        %22%22%22%0A        Returns if the word is in the data structure. A word could contain the dot character '.' to represent any one letter.%0A        :type word: str%0A        :rtype: bool%0A        %22%22%22%0A        pass%0A%0A%0Adef main():%0A    pass%0A%0A%0Aif __name__ == '__main__':%0A    main()%0A

Add lc0211_add_and_search_word_data_structure_design.py