diff --git a/solution/2700-2799/2756.Query Batching/README_EN.md b/solution/2700-2799/2756.Query Batching/README_EN.md index 797a0e498580a..c97a5c2e2adae 100644 --- a/solution/2700-2799/2756.Query Batching/README_EN.md +++ b/solution/2700-2799/2756.Query Batching/README_EN.md @@ -9,7 +9,7 @@

The constructor should accept two parameters:

diff --git a/solution/2900-2999/2950.Number of Divisible Substrings/README.md b/solution/2900-2999/2950.Number of Divisible Substrings/README.md index e96519c79c3b3..1dd8ad6988bc3 100644 --- a/solution/2900-2999/2950.Number of Divisible Substrings/README.md +++ b/solution/2900-2999/2950.Number of Divisible Substrings/README.md @@ -1,4 +1,4 @@ -# [2950. Number of Divisible Substrings](https://leetcode.cn/problems/number-of-divisible-substrings) +# [2950. 可整除子串的数量](https://leetcode.cn/problems/number-of-divisible-substrings) [English Version](/solution/2900-2999/2950.Number%20of%20Divisible%20Substrings/README_EN.md) @@ -6,18 +6,19 @@ -

Each character of the English alphabet has been mapped to a digit as shown below.

+

每个英文字母都被映射到一个数字,如下所示。

-

A string is divisible if the sum of the mapped values of its characters is divisible by its length.

+

如果字符串的字符的映射值的总和可以被字符串的长度整除,则该字符串是 可整除 的。

-

Given a string s, return the number of divisible substrings of s.

+

给定一个字符串 s,请返回 s 可整除子串 的数量

-

A substring is a contiguous non-empty sequence of characters within a string.

+

子串 是字符串内的一个连续的非空字符序列。

 

-

Example 1:

+ +

示例 1:

@@ -102,35 +103,36 @@
-Input: word = "asdf"
-Output: 6
-Explanation: The table above contains the details about every substring of word, and we can see that 6 of them are divisible.
+输入:word = "asdf"
+输出:6
+解释:上表包含了有关 word 中每个子串的详细信息,我们可以看到其中有 6 个是可整除的。
 
-

Example 2:

+

示例 2:

-Input: word = "bdh"
-Output: 4
-Explanation: The 4 divisible substrings are: "b", "d", "h", "bdh".
-It can be shown that there are no other substrings of word that are divisible.
+输入:word = "bdh"
+输出:4
+解释:4 个可整除的子串是:"b","d","h","bdh"。
+可以证明 word 中没有其他可整除的子串。
 
-

Example 3:

+

示例 3:

-Input: word = "abcd"
-Output: 6
-Explanation: The 6 divisible substrings are: "a", "b", "c", "d", "ab", "cd".
-It can be shown that there are no other substrings of word that are divisible.
+输入:word = "abcd"
+输出:6
+解释:6 个可整除的子串是:"a","b","c","d","ab","cd"。
+可以证明 word 中没有其他可整除的子串。
 

 

-

Constraints:

+ +

提示:

## 解法