Returns true if the word is in the trie
(word string)
| 40 | |
| 41 | // Returns true if the word is in the trie |
| 42 | func (this *Trie) Search(word string) bool { |
| 43 | return this.search(word, true) |
| 44 | } |
| 45 | |
| 46 | // Returns true if there is any word in the trie that starts with the given prefix |
| 47 | func (this *Trie) StartsWith(prefix string) bool { |