Skip to content

Commit 6388471

Browse files
authored
feat: update lc problems (doocs#3643)
1 parent bf876cb commit 6388471

File tree

58 files changed

+771
-47
lines changed

Some content is hidden

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

58 files changed

+771
-47
lines changed

solution/3300-3399/3300.Minimum Element After Replacement With Digit Sum/README.md

+2
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/3300-3399/3300.Minimum%20Element%20After%20Replacement%20With%20Digit%20Sum/README.md
5+
rating: 1181
6+
source: 第 140 场双周赛 Q1
57
tags:
68
- 数组
79
- 数学

solution/3300-3399/3300.Minimum Element After Replacement With Digit Sum/README_EN.md

+2
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/3300-3399/3300.Minimum%20Element%20After%20Replacement%20With%20Digit%20Sum/README_EN.md
5+
rating: 1181
6+
source: Biweekly Contest 140 Q1
57
tags:
68
- Array
79
- Math

solution/3300-3399/3301.Maximize the Total Height of Unique Towers/README.md

+2
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/3300-3399/3301.Maximize%20the%20Total%20Height%20of%20Unique%20Towers/README.md
5+
rating: 1448
6+
source: 第 140 场双周赛 Q2
57
tags:
68
- 贪心
79
- 数组

solution/3300-3399/3301.Maximize the Total Height of Unique Towers/README_EN.md

+2
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/3300-3399/3301.Maximize%20the%20Total%20Height%20of%20Unique%20Towers/README_EN.md
5+
rating: 1448
6+
source: Biweekly Contest 140 Q2
57
tags:
68
- Greedy
79
- Array

solution/3300-3399/3302.Find the Lexicographically Smallest Valid Sequence/README.md

+2
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/3300-3399/3302.Find%20the%20Lexicographically%20Smallest%20Valid%20Sequence/README.md
5+
rating: 2473
6+
source: 第 140 场双周赛 Q3
57
tags:
68
- 贪心
79
- 双指针

solution/3300-3399/3302.Find the Lexicographically Smallest Valid Sequence/README_EN.md

+2
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/3300-3399/3302.Find%20the%20Lexicographically%20Smallest%20Valid%20Sequence/README_EN.md
5+
rating: 2473
6+
source: Biweekly Contest 140 Q3
57
tags:
68
- Greedy
79
- Two Pointers

solution/3300-3399/3303.Find the Occurrence of First Almost Equal Substring/README.md

+2
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/3300-3399/3303.Find%20the%20Occurrence%20of%20First%20Almost%20Equal%20Substring/README.md
5+
rating: 2509
6+
source: 第 140 场双周赛 Q4
57
tags:
68
- 字符串
79
- 字符串匹配

solution/3300-3399/3303.Find the Occurrence of First Almost Equal Substring/README_EN.md

+2
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/3300-3399/3303.Find%20the%20Occurrence%20of%20First%20Almost%20Equal%20Substring/README_EN.md
5+
rating: 2509
6+
source: Biweekly Contest 140 Q4
57
tags:
68
- String
79
- String Matching

solution/3300-3399/3304.Find the K-th Character in String Game I/README.md

+2
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/3300-3399/3304.Find%20the%20K-th%20Character%20in%20String%20Game%20I/README.md
5+
rating: 1288
6+
source: 第 417 场周赛 Q1
57
tags:
68
- 位运算
79
- 递归

solution/3300-3399/3304.Find the K-th Character in String Game I/README_EN.md

+2
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/3300-3399/3304.Find%20the%20K-th%20Character%20in%20String%20Game%20I/README_EN.md
5+
rating: 1288
6+
source: Weekly Contest 417 Q1
57
tags:
68
- Bit Manipulation
79
- Recursion

solution/3300-3399/3305.Count of Substrings Containing Every Vowel and K Consonants I/README.md

+2
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/3300-3399/3305.Count%20of%20Substrings%20Containing%20Every%20Vowel%20and%20K%20Consonants%20I/README.md
5+
rating: 1563
6+
source: 第 417 场周赛 Q2
57
tags:
68
- 哈希表
79
- 字符串

solution/3300-3399/3305.Count of Substrings Containing Every Vowel and K Consonants I/README_EN.md

+2
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/3300-3399/3305.Count%20of%20Substrings%20Containing%20Every%20Vowel%20and%20K%20Consonants%20I/README_EN.md
5+
rating: 1563
6+
source: Weekly Contest 417 Q2
57
tags:
68
- Hash Table
79
- String

solution/3300-3399/3306.Count of Substrings Containing Every Vowel and K Consonants II/README.md

+2
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/3300-3399/3306.Count%20of%20Substrings%20Containing%20Every%20Vowel%20and%20K%20Consonants%20II/README.md
5+
rating: 2200
6+
source: 第 417 场周赛 Q3
57
tags:
68
- 哈希表
79
- 字符串

solution/3300-3399/3306.Count of Substrings Containing Every Vowel and K Consonants II/README_EN.md

+2
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/3300-3399/3306.Count%20of%20Substrings%20Containing%20Every%20Vowel%20and%20K%20Consonants%20II/README_EN.md
5+
rating: 2200
6+
source: Weekly Contest 417 Q3
57
tags:
68
- Hash Table
79
- String

solution/3300-3399/3307.Find the K-th Character in String Game II/README.md

+2
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/3300-3399/3307.Find%20the%20K-th%20Character%20in%20String%20Game%20II/README.md
5+
rating: 2232
6+
source: 第 417 场周赛 Q4
57
tags:
68
- 位运算
79
- 递归

solution/3300-3399/3307.Find the K-th Character in String Game II/README_EN.md

+2
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/3300-3399/3307.Find%20the%20K-th%20Character%20in%20String%20Game%20II/README_EN.md
5+
rating: 2232
6+
source: Weekly Contest 417 Q4
57
tags:
68
- Bit Manipulation
79
- Recursion

solution/3300-3399/3309.Maximum Possible Number by Binary Concatenation/README.md

+2
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/3300-3399/3309.Maximum%20Possible%20Number%20by%20Binary%20Concatenation/README.md
5+
rating: 1363
6+
source: 第 418 场周赛 Q1
57
tags:
68
- 位运算
79
- 数组

solution/3300-3399/3309.Maximum Possible Number by Binary Concatenation/README_EN.md

+2
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/3300-3399/3309.Maximum%20Possible%20Number%20by%20Binary%20Concatenation/README_EN.md
5+
rating: 1363
6+
source: Weekly Contest 418 Q1
57
tags:
68
- Bit Manipulation
79
- Array

solution/3300-3399/3310.Remove Methods From Project/README.md

+2
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/3300-3399/3310.Remove%20Methods%20From%20Project/README.md
5+
rating: 1710
6+
source: 第 418 场周赛 Q2
57
tags:
68
- 深度优先搜索
79
- 广度优先搜索

solution/3300-3399/3310.Remove Methods From Project/README_EN.md

+2
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/3300-3399/3310.Remove%20Methods%20From%20Project/README_EN.md
5+
rating: 1710
6+
source: Weekly Contest 418 Q2
57
tags:
68
- Depth-First Search
79
- Breadth-First Search

solution/3300-3399/3311.Construct 2D Grid Matching Graph Layout/README.md

+2
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/3300-3399/3311.Construct%202D%20Grid%20Matching%20Graph%20Layout/README.md
5+
rating: 2664
6+
source: 第 418 场周赛 Q3
57
tags:
68
-
79
- 数组

solution/3300-3399/3311.Construct 2D Grid Matching Graph Layout/README_EN.md

+2
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/3300-3399/3311.Construct%202D%20Grid%20Matching%20Graph%20Layout/README_EN.md
5+
rating: 2664
6+
source: Weekly Contest 418 Q3
57
tags:
68
- Graph
79
- Array

solution/3300-3399/3312.Sorted GCD Pair Queries/README.md

+2
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/3300-3399/3312.Sorted%20GCD%20Pair%20Queries/README.md
5+
rating: 2532
6+
source: 第 418 场周赛 Q4
57
tags:
68
- 数组
79
- 哈希表

solution/3300-3399/3312.Sorted GCD Pair Queries/README_EN.md

+2
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/3300-3399/3312.Sorted%20GCD%20Pair%20Queries/README_EN.md
5+
rating: 2532
6+
source: Weekly Contest 418 Q4
57
tags:
68
- Array
79
- Hash Table

solution/3300-3399/3314.Construct the Minimum Bitwise Array I/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
comments: true
33
difficulty: 简单
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3314.Construct%20the%20Minimum%20Bitwise%20Array%20I/README.md
5+
tags:
6+
- 位运算
7+
- 数组
58
---
69

710
<!-- problem:start -->

solution/3300-3399/3314.Construct the Minimum Bitwise Array I/README_EN.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
comments: true
33
difficulty: Easy
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3314.Construct%20the%20Minimum%20Bitwise%20Array%20I/README_EN.md
5+
tags:
6+
- Bit Manipulation
7+
- Array
58
---
69

710
<!-- problem:start -->

solution/3300-3399/3315.Construct the Minimum Bitwise Array II/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3315.Construct%20the%20Minimum%20Bitwise%20Array%20II/README.md
5+
tags:
6+
- 位运算
7+
- 数组
58
---
69

710
<!-- problem:start -->

solution/3300-3399/3315.Construct the Minimum Bitwise Array II/README_EN.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
comments: true
33
difficulty: Medium
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3315.Construct%20the%20Minimum%20Bitwise%20Array%20II/README_EN.md
5+
tags:
6+
- Bit Manipulation
7+
- Array
58
---
69

710
<!-- problem:start -->

solution/3300-3399/3316.Find Maximum Removals From Source String/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3316.Find%20Maximum%20Removals%20From%20Source%20String/README.md
5+
tags:
6+
- 数组
7+
- 哈希表
8+
- 双指针
9+
- 字符串
10+
- 动态规划
511
---
612

713
<!-- problem:start -->

solution/3300-3399/3316.Find Maximum Removals From Source String/README_EN.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
comments: true
33
difficulty: Medium
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3316.Find%20Maximum%20Removals%20From%20Source%20String/README_EN.md
5+
tags:
6+
- Array
7+
- Hash Table
8+
- Two Pointers
9+
- String
10+
- Dynamic Programming
511
---
612

713
<!-- problem:start -->

solution/3300-3399/3317.Find the Number of Possible Ways for an Event/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
comments: true
33
difficulty: 困难
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3317.Find%20the%20Number%20of%20Possible%20Ways%20for%20an%20Event/README.md
5+
tags:
6+
- 数学
7+
- 动态规划
8+
- 组合数学
59
---
610

711
<!-- problem:start -->

solution/3300-3399/3317.Find the Number of Possible Ways for an Event/README_EN.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
comments: true
33
difficulty: Hard
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3317.Find%20the%20Number%20of%20Possible%20Ways%20for%20an%20Event/README_EN.md
5+
tags:
6+
- Math
7+
- Dynamic Programming
8+
- Combinatorics
59
---
610

711
<!-- problem:start -->

solution/3300-3399/3318.Find X-Sum of All K-Long Subarrays I/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
comments: true
33
difficulty: 简单
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3318.Find%20X-Sum%20of%20All%20K-Long%20Subarrays%20I/README.md
5+
tags:
6+
- 数组
7+
- 哈希表
8+
- 滑动窗口
9+
- 堆(优先队列)
510
---
611

712
<!-- problem:start -->

solution/3300-3399/3318.Find X-Sum of All K-Long Subarrays I/README_EN.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
comments: true
33
difficulty: Easy
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3318.Find%20X-Sum%20of%20All%20K-Long%20Subarrays%20I/README_EN.md
5+
tags:
6+
- Array
7+
- Hash Table
8+
- Sliding Window
9+
- Heap (Priority Queue)
510
---
611

712
<!-- problem:start -->

solution/3300-3399/3319.K-th Largest Perfect Subtree Size in Binary Tree/README.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3319.K-th%20Largest%20Perfect%20Subtree%20Size%20in%20Binary%20Tree/README.md
5+
tags:
6+
-
7+
- 深度优先搜索
8+
- 二叉树
9+
- 排序
510
---
611

712
<!-- problem:start -->
@@ -33,9 +38,9 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3319.K-
3338

3439
<p><strong>解释:</strong></p>
3540

36-
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/3300-3399/3319.K-th%20Largest%20Perfect%20Subtree%20Size%20in%20Binary%20Tree/images/image.jpg" style="width: 300px; height: 175px;" /></p>
41+
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/3300-3399/3319.K-th%20Largest%20Perfect%20Subtree%20Size%20in%20Binary%20Tree/images/tmpresl95rp-1.png" style="width: 400px; height: 173px;" /></p>
3742

38-
<p>完美二叉子树的根节点在图中以黑色突出显示。它们的大小按降序排列为 <code>[3, 3, 1, 1, 1, 1, 1, 1]</code>。<br />
43+
<p>完美二叉子树的根节点在图中以黑色突出显示。它们的大小按非递增顺序排列为 <code>[3, 3, 1, 1, 1, 1, 1, 1]</code>。<br />
3944
第 <code>2</code> 大的完美二叉子树的大小是 3。</p>
4045
</div>
4146

@@ -48,9 +53,9 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3319.K-
4853

4954
<p><strong>解释:</strong></p>
5055

51-
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/3300-3399/3319.K-th%20Largest%20Perfect%20Subtree%20Size%20in%20Binary%20Tree/images/image1.jpg" style="width: 300px; height: 149px;" /></p>
56+
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/3300-3399/3319.K-th%20Largest%20Perfect%20Subtree%20Size%20in%20Binary%20Tree/images/tmp_s508x9e-1.png" style="width: 300px; height: 189px;" /></p>
5257

53-
<p>完美二叉子树的大小按降序排列为 <code>[7, 3, 3, 1, 1, 1, 1]</code>。最大的完美二叉子树的大小是 7。</p>
58+
<p>完美二叉子树的大小按非递增顺序排列为 <code>[7, 3, 3, 1, 1, 1, 1]</code>。最大的完美二叉子树的大小是 7。</p>
5459
</div>
5560

5661
<p><strong class="example">示例 3:</strong></p>
@@ -62,9 +67,9 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3319.K-
6267

6368
<p><strong>解释:</strong></p>
6469

65-
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/3300-3399/3319.K-th%20Largest%20Perfect%20Subtree%20Size%20in%20Binary%20Tree/images/image4.jpg" style="width: 150px; height: 130px;" /></p>
70+
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/3300-3399/3319.K-th%20Largest%20Perfect%20Subtree%20Size%20in%20Binary%20Tree/images/tmp74xnmpj4-1.png" style="width: 250px; height: 225px;" /></p>
6671

67-
<p>完美二叉子树的大小按降序排列为 <code>[1, 1]</code>。完美二叉子树的数量少于 3。</p>
72+
<p>完美二叉子树的大小按非递增顺序排列为 <code>[1, 1]</code>。完美二叉子树的数量少于 3。</p>
6873
</div>
6974

7075
<p>&nbsp;</p>

0 commit comments

Comments
 (0)