Digital Dictionary(Wrong Answer)


My code runs fine on the sample input but fails on all the test case. Please check.

Hello @isa67719,

Your code is logically correct.
But you have missed one thing:
You are required to add the prefix in the dictionary if it is not found in the dictionary.

I have modified your code:

Hope, this would help.
Give a like, if you are satisfied.

1 Like

Thanks for the help bro. I really appreciate it.

Anytime @isa67719,

Please, mark this doubt as resolved.