Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MagicDictionary ¶
type MagicDictionary struct {
// contains filtered or unexported fields
}
MagicDictionary 是一个神奇的字典
func (*MagicDictionary) BuildDict ¶
func (md *MagicDictionary) BuildDict(dict []string)
BuildDict 往字典里面添加内容
func (*MagicDictionary) Search ¶
func (md *MagicDictionary) Search(word string) bool
Search returns if there is any word in the trie that equals to the given word after modifying exactly one character
Click to show internal directories.
Click to hide internal directories.