Digital dictionary

failing all test cases

pls provide me the dfs code for tries with explanation

  1. you missed last sentence of the problem “And if no such words are available for a given search word, add this word to your dictionary.”
    when string is not found you must add it in the dictionary.
  2. you should use ordered map for children as the output should be in lexicographical order.

updated code:https://ide.codingblocks.com/s/214707

please rate and resolve if satisfied.
thanks

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.