mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-11 10:21:43 +08:00
批量更新数据
This commit is contained in:
@@ -10,26 +10,28 @@
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>words = ["cat","bt","hat","tree"], chars = "atach"
|
||||
<pre>
|
||||
<strong>输入:</strong>words = ["cat","bt","hat","tree"], chars = "atach"
|
||||
<strong>输出:</strong>6
|
||||
<strong>解释: </strong>
|
||||
可以形成字符串 "cat" 和 "hat",所以答案是 3 + 3 = 6。
|
||||
可以形成字符串 "cat" 和 "hat",所以答案是 3 + 3 = 6。
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 2:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>words = ["hello","world","leetcode"], chars = "welldonehoneyr"
|
||||
<pre>
|
||||
<strong>输入:</strong>words = ["hello","world","leetcode"], chars = "welldonehoneyr"
|
||||
<strong>输出:</strong>10
|
||||
<strong>解释:</strong>
|
||||
可以形成字符串 "hello" 和 "world",所以答案是 5 + 5 = 10。
|
||||
可以形成字符串 "hello" 和 "world",所以答案是 5 + 5 = 10。
|
||||
</pre>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>提示:</strong></p>
|
||||
|
||||
<ol>
|
||||
<ul>
|
||||
<li><code>1 <= words.length <= 1000</code></li>
|
||||
<li><code>1 <= words[i].length, chars.length <= 100</code></li>
|
||||
<li>所有字符串中都仅包含小写英文字母</li>
|
||||
</ol>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user