Closed DHuryn closed 4 years ago
May we assume the prefix is an actual prefix for the dictionary? For example, can we have a prefix that is not the prefix of anything in the dictionary?
According to the requirement,
Your program should be able to handle prefixes or candidates that do not exist in the dictionary.
So yes, we may test prefix not exist in dict.txt.
May we assume the prefix is an actual prefix for the dictionary? For example, can we have a prefix that is not the prefix of anything in the dictionary?