Python one line solution


  • 0
    C
    def detectCapitalUse(word):
         return True if word.islower() or word.isupper() or word.istitle() else False
    

Log in to reply
 

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