Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WordDictionary ¶
type WordDictionary struct {
// contains filtered or unexported fields
}
WordDictionary 是字典
func Constructor ¶
func Constructor() WordDictionary
Constructor 构建 WordDictionary Initialize your data structure here.
func (*WordDictionary) AddWord ¶
func (d *WordDictionary) AddWord(word string)
AddWord 往 WordDictionary 中添加 word Adds a word into the data structure.
func (*WordDictionary) Search ¶
func (d *WordDictionary) Search(word string) bool
Search 返回 true 如果 WordDictionary 中包含有 word Returns if the word is in the data structure. A word could contain the dot character '.' to represent any one letter.
Click to show internal directories.
Click to hide internal directories.