whats wrong in this code
Digital dictionary challenge
@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.
@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.
I marked the line.
If my answer was able to resolve your question, please mark the doubt as resolved.