mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-11 02:11:42 +08:00
批量更新数据
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<p>Given an array of strings <code>words</code>, return <em>the words that can be typed using letters of the alphabet on only one row of American keyboard like the image below</em>.</p>
|
||||
|
||||
<p><strong>Note</strong> that the strings are <strong>case-insensitive</strong>, both lowercased and uppercased of the same letter are treated as if they are at the same row.</p>
|
||||
|
||||
<p>In the <strong>American keyboard</strong>:</p>
|
||||
|
||||
<ul>
|
||||
@@ -11,24 +13,31 @@
|
||||
<p> </p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> words = ["Hello","Alaska","Dad","Peace"]
|
||||
<strong>Output:</strong> ["Alaska","Dad"]
|
||||
</pre>
|
||||
<div class="example-block">
|
||||
<p><strong>Input:</strong> <span class="example-io">words = ["Hello","Alaska","Dad","Peace"]</span></p>
|
||||
|
||||
<p><strong>Output:</strong> <span class="example-io">["Alaska","Dad"]</span></p>
|
||||
|
||||
<p><strong>Explanation:</strong></p>
|
||||
|
||||
<p>Both <code>"a"</code> and <code>"A"</code> are in the 2nd row of the American keyboard due to case insensitivity.</p>
|
||||
</div>
|
||||
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> words = ["omk"]
|
||||
<strong>Output:</strong> []
|
||||
</pre>
|
||||
<div class="example-block">
|
||||
<p><strong>Input:</strong> <span class="example-io">words = ["omk"]</span></p>
|
||||
|
||||
<p><strong>Output:</strong> <span class="example-io">[]</span></p>
|
||||
</div>
|
||||
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> words = ["adsdf","sfd"]
|
||||
<strong>Output:</strong> ["adsdf","sfd"]
|
||||
</pre>
|
||||
<div class="example-block">
|
||||
<p><strong>Input:</strong> <span class="example-io">words = ["adsdf","sfd"]</span></p>
|
||||
|
||||
<p><strong>Output:</strong> <span class="example-io">["adsdf","sfd"]</span></p>
|
||||
</div>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Constraints:</strong></p>
|
||||
|
Reference in New Issue
Block a user