emory-courses / dsa-java

Data Structures and Algorithms in Java
https://emory.gitbook.io/dsa-java/
42 stars 55 forks source link

[HW2] #152

Closed DHuryn closed 4 years ago

DHuryn commented 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?

lujiaying commented 4 years ago

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.