mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 14:57:08 +00:00
Time: 0 ms (100%), Space: 12.4 MB (81.14%) - LeetHub
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class Solution(object):
|
||||
def detectCapitalUse(self, word):
|
||||
"""
|
||||
:type word: str
|
||||
:rtype: bool
|
||||
"""
|
||||
return word[1:] == word[1:].lower() or word == word.upper()
|
||||
Reference in New Issue
Block a user