getting all testcases wrong .
Digital Dictionary
Hey @RULEREMPIRES
Try for this input
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
code is giving correct output for this input
@RULEREMPIRES
Nope
your code Gives
app
apple
application
batman
batmobile
No suggestions // iske baad batcave missing h
batman
batmobile
cat
apple
application
No suggestions
but batcave is not a word of dictionary
okay . the last words of question says to add the word
@RULEREMPIRES
you need to design the search functionality. And if no such words are available for a given search word, add this word to your dictionary.