Wrong answer
Https://ide.codingblocks.com/s/231603
Test case:
6
app
apple
application
batman
batmobile
cat
7
ap
bat
batcave
bat
cat
appl
appledore
Correct Output:
app
apple
application
batman
batmobile
No suggestions
batcave
batman
batmobile
cat
apple
application
No suggestions
As mentioned in the questions And if no such words are available for a given search word, add this word to your dictionary. you need to add the word which is not in the dictionary to your dictionary.
In the above example that would be ‘batcave’
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.