You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h2><ahref="https://leetcode.com/problems/detect-capital/">520. Detect Capital</a></h2><h3>Easy</h3><hr><div><p>We define the usage of capitals in a word to be right when one of the following cases holds:</p>
2
+
3
+
<ul>
4
+
<li>All letters in this word are capitals, like <code>"USA"</code>.</li>
5
+
<li>All letters in this word are not capitals, like <code>"leetcode"</code>.</li>
6
+
<li>Only the first letter in this word is capital, like <code>"Google"</code>.</li>
7
+
</ul>
8
+
9
+
<p>Given a string <code>word</code>, return <code>true</code> if the usage of capitals in it is right.</p>
0 commit comments