Skip to content

Commit 42dea92

Browse files
authored
feat: add weekly contest 418 (doocs#3603)
1 parent dee676e commit 42dea92

File tree

46 files changed

+986
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+986
-8
lines changed

solution/1400-1499/1419.Minimum Number of Frogs Croaking/README_EN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ tags:
3030

3131
<pre>
3232
<strong>Input:</strong> croakOfFrogs = &quot;croakcroak&quot;
33-
<strong>Output:</strong> 1
33+
<strong>Output:</strong> 1
3434
<strong>Explanation:</strong> One frog yelling &quot;croak<strong>&quot;</strong> twice.
3535
</pre>
3636

3737
<p><strong class="example">Example 2:</strong></p>
3838

3939
<pre>
4040
<strong>Input:</strong> croakOfFrogs = &quot;crcoakroak&quot;
41-
<strong>Output:</strong> 2
42-
<strong>Explanation:</strong> The minimum number of frogs is two.
41+
<strong>Output:</strong> 2
42+
<strong>Explanation:</strong> The minimum number of frogs is two.
4343
The first frog could yell &quot;<strong>cr</strong>c<strong>oak</strong>roak&quot;.
4444
The second frog could yell later &quot;cr<strong>c</strong>oak<strong>roak</strong>&quot;.
4545
</pre>

solution/1800-1899/1876.Substrings of Size Three with Distinct Characters/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tags:
3535
<pre>
3636
<strong>Input:</strong> s = &quot;xyzzaz&quot;
3737
<strong>Output:</strong> 1
38-
<strong>Explanation:</strong> There are 4 substrings of size 3: &quot;xyz&quot;, &quot;yzz&quot;, &quot;zza&quot;, and &quot;zaz&quot;.
38+
<strong>Explanation:</strong> There are 4 substrings of size 3: &quot;xyz&quot;, &quot;yzz&quot;, &quot;zza&quot;, and &quot;zaz&quot;.
3939
The only good substring of length 3 is &quot;xyz&quot;.
4040
</pre>
4141

solution/2400-2499/2491.Divide Players Into Teams of Equal Skill/README_EN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tags:
3333
<pre>
3434
<strong>Input:</strong> skill = [3,2,5,1,3,4]
3535
<strong>Output:</strong> 22
36-
<strong>Explanation:</strong>
36+
<strong>Explanation:</strong>
3737
Divide the players into the following teams: (1, 5), (2, 4), (3, 3), where each team has a total skill of 6.
3838
The sum of the chemistry of all the teams is: 1 * 5 + 2 * 4 + 3 * 3 = 5 + 8 + 9 = 22.
3939
</pre>
@@ -43,7 +43,7 @@ The sum of the chemistry of all the teams is: 1 * 5 + 2 * 4 + 3 * 3 = 5 + 8 + 9
4343
<pre>
4444
<strong>Input:</strong> skill = [3,4]
4545
<strong>Output:</strong> 12
46-
<strong>Explanation:</strong>
46+
<strong>Explanation:</strong>
4747
The two players form a team with a total skill of 7.
4848
The chemistry of the team is 3 * 4 = 12.
4949
</pre>
@@ -53,7 +53,7 @@ The chemistry of the team is 3 * 4 = 12.
5353
<pre>
5454
<strong>Input:</strong> skill = [1,1,2,3]
5555
<strong>Output:</strong> -1
56-
<strong>Explanation:</strong>
56+
<strong>Explanation:</strong>
5757
There is no way to divide the players into teams such that the total skill of each team is equal.
5858
</pre>
5959

solution/3200-3299/3285.Find Indices of Stable Mountains/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: 简单
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3200-3299/3285.Find%20Indices%20of%20Stable%20Mountains/README.md
5+
rating: 1166
6+
source: 第 139 场双周赛 Q1
57
tags:
68
- 数组
79
---

solution/3200-3299/3285.Find Indices of Stable Mountains/README_EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: Easy
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3200-3299/3285.Find%20Indices%20of%20Stable%20Mountains/README_EN.md
5+
rating: 1166
6+
source: Biweekly Contest 139 Q1
57
tags:
68
- Array
79
---

solution/3200-3299/3286.Find a Safe Walk Through a Grid/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3200-3299/3286.Find%20a%20Safe%20Walk%20Through%20a%20Grid/README.md
5+
rating: 1607
6+
source: 第 139 场双周赛 Q2
57
tags:
68
- 广度优先搜索
79
-

solution/3200-3299/3286.Find a Safe Walk Through a Grid/README_EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: Medium
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3200-3299/3286.Find%20a%20Safe%20Walk%20Through%20a%20Grid/README_EN.md
5+
rating: 1607
6+
source: Biweekly Contest 139 Q2
57
tags:
68
- Breadth-First Search
79
- Graph

solution/3200-3299/3287.Find the Maximum Sequence Value of Array/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: 困难
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3200-3299/3287.Find%20the%20Maximum%20Sequence%20Value%20of%20Array/README.md
5+
rating: 2545
6+
source: 第 139 场双周赛 Q3
57
tags:
68
- 位运算
79
- 数组

solution/3200-3299/3287.Find the Maximum Sequence Value of Array/README_EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: Hard
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3200-3299/3287.Find%20the%20Maximum%20Sequence%20Value%20of%20Array/README_EN.md
5+
rating: 2545
6+
source: Biweekly Contest 139 Q3
57
tags:
68
- Bit Manipulation
79
- Array

solution/3200-3299/3288.Length of the Longest Increasing Path/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: 困难
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3200-3299/3288.Length%20of%20the%20Longest%20Increasing%20Path/README.md
5+
rating: 2449
6+
source: 第 139 场双周赛 Q4
57
tags:
68
- 数组
79
- 二分查找

0 commit comments

Comments
 (0)