Skip to content

Commit dcffdef

Browse files
authored
chore: update lc problems (doocs#2051)
1 parent 4f40181 commit dcffdef

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

solution/2700-2799/2756.Query Batching/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<p>The constructor should accept two parameters:</p>
1010

1111
<ul>
12-
<li>An asyncronous function&nbsp;<code>queryMultiple</code>&nbsp;which accepts an array of&nbsp;string keys <code>input</code>. It will resolve with an array of values that is the same length as the input array. Each index corresponds to the value associated with&nbsp;<code>input[i]</code>.&nbsp;You can assume the promise will never reject.</li>
12+
<li>An asynchronous function&nbsp;<code>queryMultiple</code>&nbsp;which accepts an array of&nbsp;string keys <code>input</code>. It will resolve with an array of values that is the same length as the input array. Each index corresponds to the value associated with&nbsp;<code>input[i]</code>.&nbsp;You can assume the promise will never reject.</li>
1313
<li>A throttle time in milliseconds&nbsp;<code>t</code>.</li>
1414
</ul>
1515

solution/2900-2999/2950.Number of Divisible Substrings/README.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
# [2950. Number of Divisible Substrings](https://leetcode.cn/problems/number-of-divisible-substrings)
1+
# [2950. 可整除子串的数量](https://leetcode.cn/problems/number-of-divisible-substrings)
22

33
[English Version](/solution/2900-2999/2950.Number%20of%20Divisible%20Substrings/README_EN.md)
44

55
## 题目描述
66

77
<!-- 这里写题目描述 -->
88

9-
<p>Each character of the English alphabet has been mapped to a digit as shown below.</p>
9+
<p>每个英文字母都被映射到一个数字,如下所示。</p>
1010

1111
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/2900-2999/2950.Number%20of%20Divisible%20Substrings/images/old_phone_digits.png" style="padding: 10px; width: 200px; height: 200px;" /></p>
1212

13-
<p>A string is <strong>divisible</strong> if the sum of the mapped values of its characters is divisible by its length.</p>
13+
<p>如果字符串的字符的映射值的总和可以被字符串的长度整除,则该字符串是 <strong>可整除</strong> 的。</p>
1414

15-
<p>Given a string <code>s</code>, return <em>the number of <strong>divisible substrings</strong> of</em> <code>s</code>.</p>
15+
<p>给定一个字符串 <code>s</code>,请返回 <code>s</code><em> <strong>可整除子串</strong> 的数量</em></p>
1616

17-
<p>A <strong>substring</strong> is a contiguous non-empty sequence of characters within a string.</p>
17+
<p><strong>子串</strong> 是字符串内的一个连续的非空字符序列。</p>
1818

1919
<p>&nbsp;</p>
20-
<p><strong class="example">Example 1:</strong></p>
20+
21+
<p><strong class="example">示例 1:</strong></p>
2122

2223
<table border="1" cellspacing="3" style="border-collapse: separate; text-align: center;">
2324
<tbody>
@@ -102,35 +103,36 @@
102103
</table>
103104

104105
<pre>
105-
<strong>Input:</strong> word = &quot;asdf&quot;
106-
<strong>Output:</strong> 6
107-
<strong>Explanation:</strong> The table above contains the details about every substring of word, and we can see that 6 of them are divisible.
106+
<b>输入:</b>word = "asdf"
107+
<b>输出:</b>6
108+
<b>解释:</b>上表包含了有关 word 中每个子串的详细信息,我们可以看到其中有 6 个是可整除的。
108109
</pre>
109110

110-
<p><strong class="example">Example 2:</strong></p>
111+
<p><b>示例 2:</b></p>
111112

112113
<pre>
113-
<strong>Input:</strong> word = &quot;bdh&quot;
114-
<strong>Output:</strong> 4
115-
<strong>Explanation:</strong> The 4 divisible substrings are: &quot;b&quot;, &quot;d&quot;, &quot;h&quot;, &quot;bdh&quot;.
116-
It can be shown that there are no other substrings of word that are divisible.
114+
<b>输入:</b>word = "bdh"
115+
<b>输出:</b>4
116+
<b>解释:</b>4 个可整除的子串是:"b","d","h","bdh"。
117+
可以证明 word 中没有其他可整除的子串。
117118
</pre>
118119

119-
<p><strong class="example">Example 3:</strong></p>
120+
<p><b>示例 3:</b></p>
120121

121122
<pre>
122-
<strong>Input:</strong> word = &quot;abcd&quot;
123-
<strong>Output:</strong> 6
124-
<strong>Explanation:</strong> The 6 divisible substrings are: &quot;a&quot;, &quot;b&quot;, &quot;c&quot;, &quot;d&quot;, &quot;ab&quot;, &quot;cd&quot;.
125-
It can be shown that there are no other substrings of word that are divisible.
123+
<b>输入:</b>word = "abcd"
124+
<b>输出:</b>6
125+
<b>解释:</b>6 个可整除的子串是:"a","b","c","d","ab","cd"。
126+
可以证明 word 中没有其他可整除的子串。
126127
</pre>
127128

128129
<p>&nbsp;</p>
129-
<p><strong>Constraints:</strong></p>
130+
131+
<p><b>提示:</b></p>
130132

131133
<ul>
132134
<li><code>1 &lt;= word.length &lt;= 2000</code></li>
133-
<li><code>word</code> consists only of lowercase English letters.</li>
135+
<li><code>word</code> 仅包含小写英文字母。</li>
134136
</ul>
135137

136138
## 解法

0 commit comments

Comments
 (0)