Getting wrong Output
Digital Dictionary
Hello @dsingh200021,
You have missed an important part of the question:
if prefix is not present in the dictionary then you need to print No suggestions and then add that prefix into the dictionary.
Example:
4
pet
peter
rat
rack
5
pe
pet
r
rac
rr
Your Output:
pet
peter
pet
peter
rack
rat
rack
Expected Output:
pet
peter
pet
peter
rack
rat
rack
No suggestions
Hope, this would help.
Give a like if you are satisfied.
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.