Test case is wrong


  • 0
    H

    Input: ["a","a"],isUnique("a")
    Output: [false]
    Expected: [true]

    Here the abbreviation of "a" appeared twice in the dictionary. So the output should be false instead of true, right?


  • 1
    B

    A word's abbreviation is unique if no other word from the dictionary has the same abbreviation. a is the same word


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.