* @param {string} word * @return {string[]}
(word)
| 68 | * @return {string[]} |
| 69 | */ |
| 70 | suggestNextCharacters(word) { |
| 71 | const lastCharacter = this.getLastCharacterNode(word); |
| 72 | |
| 73 | if (!lastCharacter) { |
| 74 | return null; |
| 75 | } |
| 76 | |
| 77 | return lastCharacter.suggestChildren(); |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Check if complete word exists in Trie. |
no test coverage detected