my question is how to transform this method from the trie class into a method of the node class that doesn’t use the node as a parameter, I know that I have to make a first method on the tree like this: But I don’t know how to make the transformation of the method into the node class. This is
Tag: trie
Search Suggestions System
Below is the problem statement and below it , is my solution using TrieNode Data structure but My ans is wrong and i am not able to understand where my code gone wrong , please help …… Given an array of strings products and a string searchWord. We want to design a system that suggests at most three product names