DIGITAL DICTIONARY


What is the error in this code?

I have been able to solve this problem with Trie data structure, but I want to know how to solve it using map.

@AbhilashaBansal
hey this question is designed to learn the implementation using trie so it’s better to use trie instead of hash map