Digital dictionary challenge


whats wrong in this code

@naazsayma123
There was a small error in your code. You had not taken input in n variable because of which it was getting stuck in an infinite loop. Just correct that and it should work just fine.

If my answer was able to resolve your question, please mark the doubt as resolved.

@LP18Aug0068


now it passing the sample case but not passing the test cases

@naazsayma123
When you are printing no suggestions, that means currently that prefix does not exist. You are supposed to add the word to the trie. Please add the word to the trie after value turns out to be false.

If my answer was able to resolve your question, please mark the doubt as resolved.

@LP18Aug0068 can you please update my code i am unable to do

@naazsayma123

I marked the line.
If my answer was able to resolve your question, please mark the doubt as resolved.