Python use list:)


  • 0
    Y

    It's very simple.
    s = list(s)
    t = list(t)
    s.sort()
    t.sort()
    if s == t:
    print True
    else:print False


Log in to reply
 

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