Skip to content

Commit be3f4a0

Browse files
committed
feat: update lc problems
1 parent d33fb1e commit be3f4a0

File tree

15 files changed

+234
-52
lines changed

15 files changed

+234
-52
lines changed

solution/0100-0199/0150.Evaluate Reverse Polish Notation/README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@
66

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

9-
<p>根据<a href="https://baike.baidu.com/item/%E9%80%86%E6%B3%A2%E5%85%B0%E5%BC%8F/128437" target="_blank"> 逆波兰表示法</a>,求表达式的值。</p>
9+
<p>给你一个字符串数组 <code>tokens</code> ,表示一个根据&nbsp;<a href="https://baike.baidu.com/item/%E9%80%86%E6%B3%A2%E5%85%B0%E5%BC%8F/128437" target="_blank">逆波兰表示法</a> 表示的算术表达式。</p>
1010

11-
<p>有效的算符包括&nbsp;<code>+</code>、<code>-</code>、<code>*</code>、<code>/</code>&nbsp;。每个运算对象可以是整数,也可以是另一个逆波兰表达式。</p>
11+
<p>请你计算该表达式。返回一个表示表达式值的整数。</p>
1212

13-
<p><b>注意&nbsp;</b>两个整数之间的除法只保留整数部分。</p>
13+
<p><strong>注意:</strong></p>
1414

15-
<p>可以保证给定的逆波兰表达式总是有效的。换句话说,表达式总会得出有效数值且不存在除数为 0 的情况。</p>
15+
<ul>
16+
<li>有效的算符为 <code>'+'</code>、<code>'-'</code>、<code>'*'</code> 和 <code>'/'</code> 。</li>
17+
<li>每个操作数(运算对象)都可以是一个整数或者另一个表达式。</li>
18+
<li>两个整数之间的乘法总是 <strong>向零截断</strong> 。</li>
19+
<li>表达式中不含除零运算。</li>
20+
<li>输入是一个根据逆波兰表示法表示的算术表达式。</li>
21+
<li>答案及所有中间计算结果可以用 <strong>32 位</strong> 整数表示。</li>
22+
</ul>
1623

1724
<p>&nbsp;</p>
1825

solution/0300-0399/0367.Valid Perfect Square/README.md

+11-7
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,36 @@
66

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

9-
<p>给定一个 <strong>正整数</strong> <code>num</code> ,编写一个函数,如果 <code>num</code> 是一个完全平方数,则返回 <code>true</code> ,否则返回 <code>false</code> 。</p>
9+
<p>给你一个正整数 <code>num</code> 如果 <code>num</code> 是一个完全平方数,则返回 <code>true</code> ,否则返回 <code>false</code> 。</p>
1010

11-
<p><strong>进阶:不要</strong> 使用任何内置的库函数,如  <code>sqrt</code> 。</p>
11+
<p><strong>完全平方数</strong> 是一个可以写成某个整数的平方的整数。换句话说,它可以写成某个整数和自身的乘积。</p>
1212

13-
<p> </p>
13+
<p>不能使用任何内置的库函数,如&nbsp; <code>sqrt</code> 。</p>
1414

15-
<p><strong>示例 1:</strong></p>
15+
<p>&nbsp;</p>
16+
17+
<p><strong class="example">示例 1:</strong></p>
1618

1719
<pre>
1820
<strong>输入:</strong>num = 16
1921
<strong>输出:</strong>true
22+
<strong>解释:</strong>返回 true ,因为 4 * 4 = 16 且 4 是一个整数。
2023
</pre>
2124

22-
<p><strong>示例 2:</strong></p>
25+
<p><strong class="example">示例 2:</strong></p>
2326

2427
<pre>
2528
<strong>输入:</strong>num = 14
2629
<strong>输出:</strong>false
30+
<strong>解释:</strong>返回 false ,因为 3.742 * 3.742 = 14 但 3.742 不是一个整数。
2731
</pre>
2832

29-
<p> </p>
33+
<p>&nbsp;</p>
3034

3135
<p><strong>提示:</strong></p>
3236

3337
<ul>
34-
<li><code>1 <= num <= 2^31 - 1</code></li>
38+
<li><code>1 &lt;= num &lt;= 2<sup>31</sup> - 1</code></li>
3539
</ul>
3640

3741
## 解法

solution/0400-0499/0420.Strong Password Checker/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<ul>
1212
<li>由至少 <code>6</code> 个,至多 <code>20</code> 个字符组成。</li>
1313
<li>包含至少 <strong>一个小写 </strong>字母,至少&nbsp;<strong>一个大写</strong> 字母,和至少&nbsp;<strong>一个数字</strong> 。</li>
14-
<li>不包含连续三个重复字符 (比如 <code>"<strong>...aaa...</strong>"</code> 是不允许的, 但是&nbsp;<code>"<strong>...aa...a...</strong>"</code> 如果满足其他条件也可以算是强密码)。</li>
14+
<li>不包含连续三个重复字符 (比如 <code>"B<em><strong>aaa</strong></em>bb0"</code> 是弱密码, 但是&nbsp;<code>"B<em><strong>aa</strong></em>b<em><strong>a</strong></em>0"</code> 是强密码)。</li>
1515
</ul>
1616

1717
<p>给你一个字符串 <code>password</code> ,返回&nbsp;<em>将 <code>password</code> 修改到满足强密码条件需要的最少修改步数。如果 <code>password</code> 已经是强密码,则返回 <code>0</code> 。</em></p>
@@ -53,7 +53,7 @@
5353

5454
<ul>
5555
<li><code>1 &lt;= password.length &lt;= 50</code></li>
56-
<li><code>password</code> 由字母、数字、点 <code>'.'</code> 或者感叹号 <code>'!'</code></li>
56+
<li><code>password</code> 由字母、数字、点 <code>'.'</code> 或者感叹号 <code>'!'</code> 组成</li>
5757
</ul>
5858

5959
## 解法

solution/1100-1199/1146.Snapshot Array/README_EN.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ class SnapshotArray {
8282
arr = new List[length];
8383
Arrays.setAll(arr, k -> new ArrayList<>());
8484
}
85-
85+
8686
public void set(int index, int val) {
8787
arr[index].add(new int[] {idx, val});
8888
}
89-
89+
9090
public int snap() {
9191
return idx++;
9292
}
93-
93+
9494
public int get(int index, int snap_id) {
9595
var vals = arr[index];
9696
int left = 0, right = vals.size();
@@ -124,15 +124,15 @@ public:
124124
idx = 0;
125125
arr = vector<vector<pair<int, int>>>(length);
126126
}
127-
127+
128128
void set(int index, int val) {
129129
arr[index].push_back({idx, val});
130130
}
131-
131+
132132
int snap() {
133133
return idx++;
134134
}
135-
135+
136136
int get(int index, int snap_id) {
137137
auto& vals = arr[index];
138138
int left = 0, right = vals.size();

solution/1200-1299/1272.Remove Interval/Solution.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
class Solution:
2-
def removeInterval(self, intervals: List[List[int]], toBeRemoved: List[int]) -> List[List[int]]:
2+
def removeInterval(
3+
self, intervals: List[List[int]], toBeRemoved: List[int]
4+
) -> List[List[int]]:
35
x, y = toBeRemoved
46
ans = []
57
for a, b in intervals:

solution/1900-1999/1916.Count Ways to Build Rooms in an Ant Colony/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

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

9-
<p>你是一只蚂蚁,负责为蚁群构筑 <code>n</code> 间编号从 <code>0</code> 到 <code>n-1</code> 的新房间。给你一个 <strong>下标从 0 开始</strong> 且长度为 <code>n</code> 的整数数组 <code>prevRoom</code> 作为扩建计划。其中,<code>prevRoom[i]</code> 表示在构筑房间 <code>i</code> 之前,你必须先构筑房间 <code>prevRoom[i]</code> ,并且这两个房间必须 <strong>直接</strong> 相连。房间 <code>0</code> 已经构筑完成,所以 <code>prevRoom[0] = -1</code> 。扩建计划中还有一条硬性要求,在完成所有房间的构筑之后,从房间 <code>0</code> 可以访问到每个房间。</p>
9+
<p>你是一只蚂蚁,负责为蚁群构筑 <code>n</code> 间编号从 <code>0</code> 到 <code>n-1</code> 的新房间。给你一个 <strong>下标从 0 开始</strong> 且长度为 <code>n</code> 的整数数组&nbsp;<code>prevRoom</code> 作为扩建计划。其中,<code>prevRoom[i]</code> 表示在构筑房间 <code>i</code> 之前,你必须先构筑房间 <code>prevRoom[i]</code> ,并且这两个房间必须 <strong>直接</strong> 相连。房间 <code>0</code> 已经构筑完成,所以 <code>prevRoom[0] = -1</code> 。扩建计划中还有一条硬性要求,在完成所有房间的构筑之后,从房间 <code>0</code> 可以访问到每个房间。</p>
1010

11-
<p>你一次只能构筑 <strong>一个</strong> 房间。你可以在 <strong>已经构筑好的</strong> 房间之间自由穿行,只要这些房间是 <strong>相连的</strong> 。如果房间 <code>prevRoom[i]</code> 已经构筑完成,那么你就可以构筑房间 <code>i</code>。</p>
11+
<p>你一次只能构筑 <strong>一个</strong> 房间。你可以在 <strong>已经构筑好的</strong> 房间之间自由穿行,只要这些房间是 <strong>相连的</strong> 。如果房间&nbsp;<code>prevRoom[i]</code> 已经构筑完成,那么你就可以构筑房间 <code>i</code>。</p>
1212

1313
<p>返回你构筑所有房间的 <strong>不同顺序的数目</strong> 。由于答案可能很大,请返回对 <code>10<sup>9</sup> + 7</code> <strong>取余</strong> 的结果。</p>
1414

15-
<p> </p>
15+
<p>&nbsp;</p>
1616

1717
<p><strong>示例 1:</strong></p>
1818
<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1900-1999/1916.Count%20Ways%20to%20Build%20Rooms%20in%20an%20Ant%20Colony/images/d1.jpg" style="width: 200px; height: 212px;" />
@@ -38,15 +38,15 @@
3838
0 → 2 → 1 → 4 → 3
3939
</pre>
4040

41-
<p> </p>
41+
<p>&nbsp;</p>
4242

4343
<p><strong>提示:</strong></p>
4444

4545
<ul>
4646
<li><code>n == prevRoom.length</code></li>
47-
<li><code>2 <= n <= 10<sup>5</sup></code></li>
47+
<li><code>2 &lt;= n &lt;= 10<sup>5</sup></code></li>
4848
<li><code>prevRoom[0] == -1</code></li>
49-
<li>对于所有的 <code>1 <= i < n</code> ,都有 <code>0 <= prevRoom[i] < n</code></li>
49+
<li>对于所有的&nbsp;<code>1 &lt;= i &lt; n</code>&nbsp;,都有&nbsp;<code>0 &lt;= prevRoom[i] &lt; n</code></li>
5050
<li>题目保证所有房间都构筑完成后,从房间 <code>0</code> 可以访问到每个房间</li>
5151
</ul>
5252

solution/2500-2599/2517.Maximum Tastiness of Candy Basket/README_EN.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ It can be proven that 2 is the maximum tastiness that can be achieved.
4343
<p><strong>Constraints:</strong></p>
4444

4545
<ul>
46-
<li><code>1 &lt;= price.length &lt;= 10<sup>5</sup></code></li>
46+
<li><code>2 &lt;= k &lt;= price.length &lt;= 10<sup>5</sup></code></li>
4747
<li><code>1 &lt;= price[i] &lt;= 10<sup>9</sup></code></li>
48-
<li><code>2 &lt;= k &lt;= price.length</code></li>
4948
</ul>
5049

5150
## Solutions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# [2519. Count the Number of K-Big Indices](https://leetcode.cn/problems/count-the-number-of-k-big-indices)
2+
3+
[English Version](/solution/2500-2599/2519.Count%20the%20Number%20of%20K-Big%20Indices/README_EN.md)
4+
5+
## 题目描述
6+
7+
<!-- 这里写题目描述 -->
8+
9+
<p>You are given a <strong>0-indexed</strong> integer array <code>nums</code> and a positive integer <code>k</code>.</p>
10+
11+
<p>We call an index <code>i</code> <strong>k-big</strong> if the following conditions are satisfied:</p>
12+
13+
<ul>
14+
<li>There exist at least <code>k</code> different indices <code>idx1</code> such that <code>idx1 &lt; i</code> and <code>nums[idx1] &lt; nums[i]</code>.</li>
15+
<li>There exist at least <code>k</code> different indices <code>idx2</code> such that <code>idx2 &gt; i</code> and <code>nums[idx2] &lt; nums[i]</code>.</li>
16+
</ul>
17+
18+
<p>Return <em>the number of k-big indices</em>.</p>
19+
20+
<p>&nbsp;</p>
21+
<p><strong class="example">Example 1:</strong></p>
22+
23+
<pre>
24+
<strong>Input:</strong> nums = [2,3,6,5,2,3], k = 2
25+
<strong>Output:</strong> 2
26+
<strong>Explanation:</strong> There are only two 2-big indices in nums:
27+
- i = 2 --&gt; There are two valid idx1: 0 and 1. There are three valid idx2: 2, 3, and 4.
28+
- i = 3 --&gt; There are two valid idx1: 0 and 1. There are two valid idx2: 3 and 4.
29+
</pre>
30+
31+
<p><strong class="example">Example 2:</strong></p>
32+
33+
<pre>
34+
<strong>Input:</strong> nums = [1,1,1], k = 3
35+
<strong>Output:</strong> 0
36+
<strong>Explanation:</strong> There are no 3-big indices in nums.
37+
</pre>
38+
39+
<p>&nbsp;</p>
40+
<p><strong>Constraints:</strong></p>
41+
42+
<ul>
43+
<li><code>1 &lt;= nums.length &lt;= 10<sup>5</sup></code></li>
44+
<li><code>1 &lt;= nums[i], k &lt;= nums.length</code></li>
45+
</ul>
46+
47+
## 解法
48+
49+
<!-- 这里可写通用的实现逻辑 -->
50+
51+
<!-- tabs:start -->
52+
53+
### **Python3**
54+
55+
<!-- 这里可写当前语言的特殊实现逻辑 -->
56+
57+
```python
58+
59+
```
60+
61+
### **Java**
62+
63+
<!-- 这里可写当前语言的特殊实现逻辑 -->
64+
65+
```java
66+
67+
```
68+
69+
### **C++**
70+
71+
```cpp
72+
73+
```
74+
75+
### **Go**
76+
77+
```go
78+
79+
```
80+
81+
### **...**
82+
83+
```
84+
85+
```
86+
87+
<!-- tabs:end -->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# [2519. Count the Number of K-Big Indices](https://leetcode.com/problems/count-the-number-of-k-big-indices)
2+
3+
[中文文档](/solution/2500-2599/2519.Count%20the%20Number%20of%20K-Big%20Indices/README.md)
4+
5+
## Description
6+
7+
<p>You are given a <strong>0-indexed</strong> integer array <code>nums</code> and a positive integer <code>k</code>.</p>
8+
9+
<p>We call an index <code>i</code> <strong>k-big</strong> if the following conditions are satisfied:</p>
10+
11+
<ul>
12+
<li>There exist at least <code>k</code> different indices <code>idx1</code> such that <code>idx1 &lt; i</code> and <code>nums[idx1] &lt; nums[i]</code>.</li>
13+
<li>There exist at least <code>k</code> different indices <code>idx2</code> such that <code>idx2 &gt; i</code> and <code>nums[idx2] &lt; nums[i]</code>.</li>
14+
</ul>
15+
16+
<p>Return <em>the number of k-big indices</em>.</p>
17+
18+
<p>&nbsp;</p>
19+
<p><strong class="example">Example 1:</strong></p>
20+
21+
<pre>
22+
<strong>Input:</strong> nums = [2,3,6,5,2,3], k = 2
23+
<strong>Output:</strong> 2
24+
<strong>Explanation:</strong> There are only two 2-big indices in nums:
25+
- i = 2 --&gt; There are two valid idx1: 0 and 1. There are three valid idx2: 2, 3, and 4.
26+
- i = 3 --&gt; There are two valid idx1: 0 and 1. There are two valid idx2: 3 and 4.
27+
</pre>
28+
29+
<p><strong class="example">Example 2:</strong></p>
30+
31+
<pre>
32+
<strong>Input:</strong> nums = [1,1,1], k = 3
33+
<strong>Output:</strong> 0
34+
<strong>Explanation:</strong> There are no 3-big indices in nums.
35+
</pre>
36+
37+
<p>&nbsp;</p>
38+
<p><strong>Constraints:</strong></p>
39+
40+
<ul>
41+
<li><code>1 &lt;= nums.length &lt;= 10<sup>5</sup></code></li>
42+
<li><code>1 &lt;= nums[i], k &lt;= nums.length</code></li>
43+
</ul>
44+
45+
## Solutions
46+
47+
<!-- tabs:start -->
48+
49+
### **Python3**
50+
51+
```python
52+
53+
```
54+
55+
### **Java**
56+
57+
```java
58+
59+
```
60+
61+
### **C++**
62+
63+
```cpp
64+
65+
```
66+
67+
### **Go**
68+
69+
```go
70+
71+
```
72+
73+
### **...**
74+
75+
```
76+
77+
```
78+
79+
<!-- tabs:end -->

solution/CONTEST_README_EN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ If you are in the top 25% of the contest rating, you’ll get the “Knight” b
1313

1414
| Level | Proportion | Badge | Rating | |
1515
| ----- | ---------- | ---------- | -------------- | ----------------------------------------------------------------------------------------------------------------------- |
16-
| LV3 | 5\% | Guardian | &ge;2186.36 | <p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/images/Guardian.gif" style="width: 80px;" /></p> |
17-
| LV2 | 20\% | Knight | &ge;1854.25 | <p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/images/Knight.gif" style="width: 80px;" /></p> |
16+
| LV3 | 5\% | Guardian | &ge;2185.56 | <p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/images/Guardian.gif" style="width: 80px;" /></p> |
17+
| LV2 | 20\% | Knight | &ge;1853.59 | <p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/images/Knight.gif" style="width: 80px;" /></p> |
1818
| LV1 | 75\% | - | - | - |
1919

2020
For top 10 users (excluding LCCN users), your LeetCode ID will be colored orange on the ranking board. You'll also have the honor with you when you post/comment under discuss.

solution/README.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@
865865
| 0852 | [山脉数组的峰顶索引](/solution/0800-0899/0852.Peak%20Index%20in%20a%20Mountain%20Array/README.md) | `数组`,`二分查找` | 中等 | 第 89 场周赛 |
866866
| 0853 | [车队](/solution/0800-0899/0853.Car%20Fleet/README.md) | ``,`数组`,`排序`,`单调栈` | 中等 | 第 89 场周赛 |
867867
| 0854 | [相似度为 K 的字符串](/solution/0800-0899/0854.K-Similar%20Strings/README.md) | `广度优先搜索`,`字符串` | 困难 | 第 89 场周赛 |
868-
| 0855 | [考场就座](/solution/0800-0899/0855.Exam%20Room/README.md) | `设计`,`有序集合` | 中等 | 第 89 场周赛 |
868+
| 0855 | [考场就座](/solution/0800-0899/0855.Exam%20Room/README.md) | `设计`,`有序集合`,`堆(优先队列)` | 中等 | 第 89 场周赛 |
869869
| 0856 | [括号的分数](/solution/0800-0899/0856.Score%20of%20Parentheses/README.md) | ``,`字符串` | 中等 | 第 90 场周赛 |
870870
| 0857 | [雇佣 K 名工人的最低成本](/solution/0800-0899/0857.Minimum%20Cost%20to%20Hire%20K%20Workers/README.md) | `贪心`,`数组`,`排序`,`堆(优先队列)` | 困难 | 第 90 场周赛 |
871871
| 0858 | [镜面反射](/solution/0800-0899/0858.Mirror%20Reflection/README.md) | `几何`,`数学` | 中等 | 第 90 场周赛 |
@@ -2520,15 +2520,16 @@
25202520
| 2507 | [使用质因数之和替换后可以取到的最小值](/solution/2500-2599/2507.Smallest%20Value%20After%20Replacing%20With%20Sum%20of%20Prime%20Factors/README.md) | `数学`,`数论` | 中等 | 第 324 场周赛 |
25212521
| 2508 | [添加边使所有节点度数都为偶数](/solution/2500-2599/2508.Add%20Edges%20to%20Make%20Degrees%20of%20All%20Nodes%20Even/README.md) | ``,`哈希表` | 困难 | 第 324 场周赛 |
25222522
| 2509 | [查询树中环的长度](/solution/2500-2599/2509.Cycle%20Length%20Queries%20in%20a%20Tree/README.md) | ``,`二叉树` | 困难 | 第 324 场周赛 |
2523-
| 2510 | [Check if There is a Path With Equal Number of 0's And 1's](/solution/2500-2599/2510.Check%20if%20There%20is%20a%20Path%20With%20Equal%20Number%20of%200%27s%20And%201%27s/README.md) | | 中等 | 🔒 |
2524-
| 2511 | [最多可以摧毁的敌人城堡数目](/solution/2500-2599/2511.Maximum%20Enemy%20Forts%20That%20Can%20Be%20Captured/README.md) | | 简单 | 第 94 场双周赛 |
2525-
| 2512 | [奖励最顶尖的 K 名学生](/solution/2500-2599/2512.Reward%20Top%20K%20Students/README.md) | | 中等 | 第 94 场双周赛 |
2526-
| 2513 | [最小化两个数组中的最大值](/solution/2500-2599/2513.Minimize%20the%20Maximum%20of%20Two%20Arrays/README.md) | | 中等 | 第 94 场双周赛 |
2527-
| 2514 | [统计同位异构字符串数目](/solution/2500-2599/2514.Count%20Anagrams/README.md) | | 困难 | 第 94 场双周赛 |
2528-
| 2515 | [到目标字符串的最短距离](/solution/2500-2599/2515.Shortest%20Distance%20to%20Target%20String%20in%20a%20Circular%20Array/README.md) | | 简单 | |
2529-
| 2516 | [每种字符至少取 K 个](/solution/2500-2599/2516.Take%20K%20of%20Each%20Character%20From%20Left%20and%20Right/README.md) | | 中等 | |
2530-
| 2517 | [礼盒的最大甜蜜度](/solution/2500-2599/2517.Maximum%20Tastiness%20of%20Candy%20Basket/README.md) | | 中等 | |
2531-
| 2518 | [好分区的数目](/solution/2500-2599/2518.Number%20of%20Great%20Partitions/README.md) | | 困难 | |
2523+
| 2510 | [Check if There is a Path With Equal Number of 0's And 1's](/solution/2500-2599/2510.Check%20if%20There%20is%20a%20Path%20With%20Equal%20Number%20of%200%27s%20And%201%27s/README.md) | `数组`,`动态规划`,`矩阵` | 中等 | 🔒 |
2524+
| 2511 | [最多可以摧毁的敌人城堡数目](/solution/2500-2599/2511.Maximum%20Enemy%20Forts%20That%20Can%20Be%20Captured/README.md) | `数组`,`双指针` | 简单 | 第 94 场双周赛 |
2525+
| 2512 | [奖励最顶尖的 K 名学生](/solution/2500-2599/2512.Reward%20Top%20K%20Students/README.md) | `数组`,`哈希表`,`字符串`,`排序`,`堆(优先队列)` | 中等 | 第 94 场双周赛 |
2526+
| 2513 | [最小化两个数组中的最大值](/solution/2500-2599/2513.Minimize%20the%20Maximum%20of%20Two%20Arrays/README.md) | `数学`,`二分查找`,`数论` | 中等 | 第 94 场双周赛 |
2527+
| 2514 | [统计同位异构字符串数目](/solution/2500-2599/2514.Count%20Anagrams/README.md) | `哈希表`,`数学`,`字符串`,`组合数学`,`计数` | 困难 | 第 94 场双周赛 |
2528+
| 2515 | [到目标字符串的最短距离](/solution/2500-2599/2515.Shortest%20Distance%20to%20Target%20String%20in%20a%20Circular%20Array/README.md) | `数组`,`字符串` | 简单 | 第 325 场周赛 |
2529+
| 2516 | [每种字符至少取 K 个](/solution/2500-2599/2516.Take%20K%20of%20Each%20Character%20From%20Left%20and%20Right/README.md) | `哈希表`,`字符串`,`滑动窗口` | 中等 | 第 325 场周赛 |
2530+
| 2517 | [礼盒的最大甜蜜度](/solution/2500-2599/2517.Maximum%20Tastiness%20of%20Candy%20Basket/README.md) | `数组`,`二分查找`,`排序` | 中等 | 第 325 场周赛 |
2531+
| 2518 | [好分区的数目](/solution/2500-2599/2518.Number%20of%20Great%20Partitions/README.md) | `数组`,`动态规划` | 困难 | 第 325 场周赛 |
2532+
| 2519 | [Count the Number of K-Big Indices](/solution/2500-2599/2519.Count%20the%20Number%20of%20K-Big%20Indices/README.md) | `树状数组`,`线段树`,`数组`,`二分查找`,`分治`,`有序集合`,`归并排序` | 困难 | 🔒 |
25322533

25332534
## 版权
25342535

0 commit comments

Comments
 (0)