sir my doubt is i tried with multiple input it is showing right answer but if i submit no test case is passing?? why
below my code
Sir doubt in code
Hey @tejasddongare your code seems to work fine have you considered constraints. 1≤N≤30000 And you are storing it into int. Maybe that’s why you are not getting your test cases passed.
no sir the issue issue was i didnt read the question carefully it was mentioned if the word is not present print no suggestion and insert that word in trie but i was just printing no suggestion and i wasnt inserting it in trie now all cases are passing after inserting
Congratulations 