why should ["hello"],isUnique("hello") return [true] ?
but in the case below
Given dictionary = [ "deer", "door", "cake", "card" ]
isUnique("cane") -> false
"A word's abbreviation is unique if no other word from the dictionary has the same abbreviation."
@benjaminrbarnes Does any other word from the dictionary have the same abbreviation?
The question is actually kind of misleading. it assumes that if the word, i.e. "hello", exists in the dictionary, i.e. ["hello", "world"], then the exact match between the word "hello" and the same one in the dictionary will not be counted as a comparison.
@stone30 How is it misleading? The definition explicitly says "no other word", and the same word is not an "other" word.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.