Python easy solution


  • -1
    W

    def de(x):
    li = list(str(x))
    se = set(li)
    x1 = list(se)
    if len(li)>len(x1):
    return False
    else:
    return True


Log in to reply
 

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