Skip to content

Commit fce8fa7

Browse files
committed
Create README - LeetHub
1 parent bd72a11 commit fce8fa7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

0520-detect-capital/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<h2><a href="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>
10+
11+
<p>&nbsp;</p>
12+
<p><strong class="example">Example 1:</strong></p>
13+
<pre><strong>Input:</strong> word = "USA"
14+
<strong>Output:</strong> true
15+
</pre><p><strong class="example">Example 2:</strong></p>
16+
<pre><strong>Input:</strong> word = "FlaG"
17+
<strong>Output:</strong> false
18+
</pre>
19+
<p>&nbsp;</p>
20+
<p><strong>Constraints:</strong></p>
21+
22+
<ul>
23+
<li><code>1 &lt;= word.length &lt;= 100</code></li>
24+
<li><code>word</code> consists of lowercase and uppercase English letters.</li>
25+
</ul>
26+
</div>

0 commit comments

Comments
 (0)