It is able to pass sample testcase and when i am submitting it shows error for all test cases.Please tell me the problem
code link : https://ide.codingblocks.com/s/226642
It is able to pass sample testcase and when i am submitting it shows error for all test cases.Please tell me the problem
code link : https://ide.codingblocks.com/s/226642
Hello @ajaygangwar2030,
You have to insert the string into the trie if it is not present.
I have Modified your code.
Check line number 97:
Hope, this would help.
Give a like if you are satisfied.