Closed lcunild closed 3 years ago
Sorry I was wrong. Could you give some code snippets that I can take a look. In other words, the check condition statement.
Here is my getCandidates method for Autocomplete: https://github.com/lcunild/dsa-java/blob/master/src/main/java/edu/emory/cs/trie/autocomplete/AutocompleteHW.java It is not finished yet, I am just trying to get it to work for the basic case, and then make it more robust once I know that my idea is correct. Here is the test program: https://github.com/lcunild/dsa-java/blob/master/src/test/java/edu/emory/cs/trie/autocomplete/AutocompleteTest.java
I figured out the reason why, I had added a null character to the end of all my strings in the result. I have fixed it now.
When I use the test program, my program returns exactly the same output as the expected output, however it still says fail. What could be causing this to happen?