1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/字母大小写全排列 [letter-case-permutation].html

29 lines
776 B
HTML
Raw Normal View History

2022-03-27 20:46:41 +08:00
<p>给定一个字符串&nbsp;<code>s</code>&nbsp;,通过将字符串&nbsp;<code>s</code>&nbsp;中的每个字母转变大小写,我们可以获得一个新的字符串。</p>
<p>返回 <em>所有可能得到的字符串集合</em> 。以 <strong>任意顺序</strong> 返回输出。</p>
<p>&nbsp;</p>
<p><strong>示例 1</strong></p>
<pre>
<strong>输入:</strong>s = "a1b2"
<strong>输出:</strong>["a1b2", "a1B2", "A1b2", "A1B2"]
</pre>
<p><strong>示例 2:</strong></p>
<pre>
<strong>输入:</strong> s = "3z4"
<strong>输出:</strong> ["3z4","3Z4"]
</pre>
<p>&nbsp;</p>
<p><strong>提示:</strong></p>
<ul>
<li><code>1 &lt;= s.length &lt;= 12</code></li>
<li><code>s</code>&nbsp;由小写英文字母、大写英文字母和数字组成</li>
</ul>