Closed TFloyd1989 closed 4 years ago
For question 1, if the prefix is empty, it depends on what you have from getCandicates
when prefix is empty. Thus, it will become a combination of your getCandicates
and your picked word;
For question 2, Whitespaces are not allowed as input; thus, you should trim all input strings.
as listed in the Homework Note;
~For question3, we only consider alphabetical input as a real dictionary.~
For question 2, I was wondering if I could have a bit more clarification? Like if the prefix is " ", trim it to " " a space, or just make it an empty string?
I have a few questions about some pickcandidates logic. 1) If the prefix is an empty string, should we still store its last picked word(s)? 2) What should happen if the input is space, or only comprised of space characters? 3) Should we be prepared for inputs with non-alphabetical characters, like : or ) ?