Back to course home
0% completed
Vote For New Content
The test case seems wrong?
Tuấn Trần
Jan 31, 2024
Input:
["mobile","mouse","moneypot","monitor","mousepad"]
"mouse"
Output
[["mobile","mouse","mousepad","moneypot","monitor"],["mobile","mouse","mousepad","moneypot","monitor"],["mouse","mousepad"],["mouse","mousepad"],["mouse","mousepad"]]
Expected
[["mobile","moneypot","monitor"],["mobile","moneypot","monitor"],["mouse","mousepad"],["mouse","mousepad"],["mouse","mousepad"]]
For prefix "m", all 5 words should be showed, do I understand it correctly?
0
0
Comments
Comments
J
Jimmy a year ago
They want you to return the first three words in lexicographic order. The problem may have been updated after your post but it clearly states it.