Write a java class that implements a Trie of uppercase alphabetical letters. A trie is a data structure that permits efficient lookup of words in a dictionary (See figure). You may need to make two classes i.e. TrieNode and Trie. Your trie should support the following operations: i need one method in the tree prefix (trie) class which is THE ONE BELOW if you use helper method include it please: *****allWordsPrefix(String p) [return type String[] ] = this method returns all words whose prefix is ‘p’.***** the method should return and array of a given prefix, so for example if i pass the string ''TA'' into the method it should return an array with all words starts with the given prefix. please do your best i do have insert method, search and remove i got stuck in this method only
Write a java class that implements a Trie of uppercase alphabetical letters. A trie is a data structure that permits efficient lookup of words in a dictionary (See figure). You may need to make two classes i.e. TrieNode and Trie. Your trie should support the following operations:
i need one method in the tree prefix (trie) class which is THE ONE BELOW if you use helper method include it please:
*****allWordsPrefix(String p) [return type String[] ] = this method returns all words whose prefix is ‘p’.*****
the method should return and array of a given prefix, so for example if i pass the string ''TA'' into the method it should return an array with all words starts with the given prefix.
please do your best
i do have insert method, search and remove i got stuck in this method only
Step by step
Solved in 3 steps with 4 images