Class Trie
Constructors
constructor
-
Properties
head
Methods
addWord
- addWord(word: string): Trie
-
Parameters
deleteWord
- deleteWord(word: string): Trie
-
Parameters
doesWordExist
- doesWordExist(word: string): boolean
-
Parameters
Returns boolean
getLastCharacterNode
- getLastCharacterNode(word: string): null | TrieNode
-
Parameters
suggestNextCharacters
- suggestNextCharacters(word: string): null | string[]
-
Parameters
Returns null
|
string[]
Root Node