Protected
_rootThe function checks if the input string is a common prefix in a Trie data structure.Check if the input string is the common prefix of all the words
The input parameter is a string that represents the common prefix that we want to check for in the Trie data structure.
a boolean value indicating whether the input string is a common prefix in the Trie data structure.
Generated using TypeDoc
The
getAll
function returns an array of all words in a Trie data structure that start with a given prefix.