Digital Dictionary Problem


No able to pass the test cases

@vivekpatel
in case of no suggestions also insert the string into the trie.
Also take the ordered map because we need to print the output in lexicographic order.

in case of no suggestions which string I have to insert and why

@vivekpatel
The same strign which you are trying to find. Because it is given in the question.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.