Easy
,String
We define the usage of capitals in a word to be right when one of the following cases holds:
"USA"
."leetcode"
."Google"
.Given a string word
, return true
if the usage of capitals in it is right.
Example 1:
Example 2:
Constraints:
word.length
<= 100word
consists of lowercase and uppercase English letters.KobeJan 2, 2023