Can somebody please help with this implementation of trie. I am just inserting certain words and checking if any given word is present in trie or not. The output displayed on the link depicts the problem. There seems to be a problem with line 55 and so… but I am unable to get it!!
If i’ll simply pass t, then how’ll modification occur as i need to pass the reference as I am modifying the count in insert function. However, i did in search function as it doesn’t require any change, but it still gives the same.