@LPL010015
https://ide.codingblocks.com/s/63620
code is giving correct output for all the testcases that i made but giving wrong answer for all testcases on submitting.
what is going wrong? Plz help!!
Digital Dictionary
Hey vishesh, there are lot of mistakes, like predict function gives you value true or false and temp is created and deleted in that scope only… so XYZ is always null.
first try to think what you all have to do… make trie… then find the node up-to the last character of that searching word…and then print all the words below that character in lexicographical order
I have assigned the value of root directly to xyz in line number 26.
And can u please give me a test case for which my code is giving wrong answer so that i can work on it accordingly.
Because all the test cases i tried are giving correct output.
Hi Vishesh, you can refer to the following sample test case and try to analyze your code for the same. You can refer to the sample input and output here https://drive.google.com/open?id=1BCRN6IVhvrBG1plmfjLGPKvkXz7GbAVL.