Skip to content

Commit aa16c72

Browse files
committed
add 2406
1 parent 0a22353 commit aa16c72

File tree

12 files changed

+203
-72
lines changed

12 files changed

+203
-72
lines changed

assets/output/1419.md

Lines changed: 29 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -2,126 +2,92 @@
22

33
🟠 <font color=#ffb800>Medium</font>&emsp; 🔖&ensp; [`字符串`](/leetcode/outline/tag/string.md) [`计数`](/leetcode/outline/tag/counting.md)&emsp; 🔗&ensp;[`LeetCode`](https://leetcode.com/problems/minimum-number-of-frogs-croaking)
44

5-
65
## 题目
76

87
You are given the string `croakOfFrogs`, which represents a combination of the
98
string `"croak"` from different frogs, that is, multiple frogs can croak at
109
the same time, so multiple `"croak"` are mixed.
1110

12-
_Return the minimum number of_ different _frogs to finish all the croaks in
13-
the given string._
11+
_Return the minimum number of_ different _frogs to finish all the croaks in the given string._
1412

1513
A valid `"croak"` means a frog is printing five letters `'c'`, `'r'`, `'o'`,
1614
`'a'`, and `'k'` **sequentially**. The frogs have to print all five letters to
1715
finish a croak. If the given string is not a combination of a valid `"croak"`
1816
return `-1`.
1917

20-
21-
2218
**Example 1:**
2319

2420
> Input: croakOfFrogs = "croakcroak"
25-
>
26-
> Output: 1
27-
>
21+
>
22+
> Output: 1
23+
>
2824
> Explanation: One frog yelling "croak**"** twice.
2925
3026
**Example 2:**
3127

3228
> Input: croakOfFrogs = "crcoakroak"
33-
>
34-
> Output: 2
35-
>
36-
> Explanation: The minimum number of frogs is two.
37-
>
29+
>
30+
> Output: 2
31+
>
32+
> Explanation: The minimum number of frogs is two.
33+
>
3834
> The first frog could yell "**cr** c**oak** roak".
39-
>
35+
>
4036
> The second frog could yell later "cr**c** oak**roak** ".
4137
4238
**Example 3:**
4339

4440
> Input: croakOfFrogs = "croakcrook"
45-
>
41+
>
4642
> Output: -1
47-
>
43+
>
4844
> Explanation: The given string is an invalid combination of "croak**"** from different frogs.
4945
5046
**Constraints:**
5147

52-
* `1 <= croakOfFrogs.length <= 10^5`
53-
* `croakOfFrogs` is either `'c'`, `'r'`, `'o'`, `'a'`, or `'k'`.
54-
48+
- `1 <= croakOfFrogs.length <= 10^5`
49+
- `croakOfFrogs` is either `'c'`, `'r'`, `'o'`, `'a'`, or `'k'`.
5550

5651
## 题目大意
5752

58-
给你一个字符串 `croakOfFrogs`,它表示不同青蛙发出的蛙鸣声(字符串 `"croak"` )的组合。由于同一时间可以有多只青蛙呱呱作响,所以
59-
`croakOfFrogs` 中会混合多个 `“croak”` __
53+
给你一个字符串 `croakOfFrogs`,它表示不同青蛙发出的蛙鸣声(字符串 `"croak"` )的组合。由于同一时间可以有多只青蛙呱呱作响,所以 `croakOfFrogs` 中会混合多个 `“croak”`
6054

6155
请你返回模拟字符串中所有蛙鸣所需不同青蛙的最少数目。
6256

63-
要想发出蛙鸣 "croak",青蛙必须 **依序** 输出 `‘c’, ’r’, ’o’, ’a’, ’k’` 这 5
64-
个字母。如果没有输出全部五个字母,那么它就不会发出声音。如果字符串 `croakOfFrogs` 不是由若干有效的 "croak" 字符混合而成,请返回
65-
`-1`
66-
67-
57+
要想发出蛙鸣 "croak",青蛙必须 **依序** 输出 `‘c’, ’r’, ’o’, ’a’, ’k’` 这 5 个字母。如果没有输出全部五个字母,那么它就不会发出声音。如果字符串 `croakOfFrogs` 不是由若干有效的 "croak" 字符混合而成,请返回 `-1`
6858

6959
**示例 1:**
7060

71-
>
72-
>
73-
>
74-
>
75-
>
7661
> **输入:** croakOfFrogs = "croakcroak"
77-
>
78-
> **输出:** 1
79-
>
62+
>
63+
> **输出:** 1
64+
>
8065
> **解释:** 一只青蛙 “呱呱” 两次
81-
>
82-
>
8366
8467
**示例 2:**
8568

86-
>
87-
>
88-
>
89-
>
90-
>
9169
> **输入:** croakOfFrogs = "crcoakroak"
92-
>
93-
> **输出:** 2
94-
>
70+
>
71+
> **输出:** 2
72+
>
9573
> **解释:** 最少需要两只青蛙,“呱呱” 声用黑体标注
96-
>
74+
>
9775
> 第一只青蛙 "**cr** c**oak** roak"
98-
>
76+
>
9977
> 第二只青蛙 "cr**c** oak**roak** "
100-
>
101-
>
10278
10379
**示例 3:**
10480

105-
>
106-
>
107-
>
108-
>
109-
>
11081
> **输入:** croakOfFrogs = "croakcrook"
111-
>
82+
>
11283
> **输出:** -1
113-
>
114-
> **解释:** 给出的字符串不是 "croak**"** 的有效组合。
115-
>
116-
>
117-
118-
84+
>
85+
> **解释:** 给出的字符串不是 **"croak"** 的有效组合。
11986
12087
**提示:**
12188

122-
* `1 <= croakOfFrogs.length <= 10^5`
123-
* 字符串中的字符只有 `'c'`, `'r'`, `'o'`, `'a'` 或者 `'k'`
124-
89+
- `1 <= croakOfFrogs.length <= 10^5`
90+
- 字符串中的字符只有 `'c'`, `'r'`, `'o'`, `'a'` 或者 `'k'`
12591

12692
## 解题思路
12793

src/.vuepress/sidebar.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ export default sidebar({
506506
text: "2400-2499",
507507
collapsible: true,
508508
children: [
509+
"2406",
509510
"2416",
510511
"2491"
511512
],

src/leetcode/outline/solution_list.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 1.3 LeetCode 题解
22

3-
已完成 392
3+
已完成 393
44

55
<!-- prettier-ignore -->
66
| 题号 | 标题 | 题解 | 标签 | 难度 |
@@ -335,6 +335,7 @@
335335
| 2260 | [必须拿起的最小连续卡牌数](https://leetcode.com/problems/minimum-consecutive-cards-to-pick-up) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/2260) | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`滑动窗口`](/leetcode/outline/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
336336
| 2261 | [含最多 K 个可整除元素的子数组](https://leetcode.com/problems/k-divisible-elements-subarrays) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/2261) | [`字典树`](/leetcode/outline/tag/trie.md) [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) `3+` | <font color=#ffb800>Medium</font> |
337337
| 2262 | [字符串的总引力](https://leetcode.com/problems/total-appeal-of-a-string) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/2262) | [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) [`动态规划`](/leetcode/outline/tag/dynamic-programming.md) | <font color=#ff334b>Hard</font> |
338+
| 2406 | [将区间分为最少组数](https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/2406) | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `3+` | <font color=#ffb800>Medium</font> |
338339
| 2416 | [字符串的前缀分数和](https://leetcode.com/problems/sum-of-prefix-scores-of-strings) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/2416) | [`字典树`](/leetcode/outline/tag/trie.md) [`数组`](/leetcode/outline/tag/array.md) [`字符串`](/leetcode/outline/tag/string.md) `1+` | <font color=#ff334b>Hard</font> |
339340
| 2491 | [划分技能点相等的团队](https://leetcode.com/problems/divide-players-into-teams-of-equal-skill) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/2491) | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |
340341
| 2696 | [删除子串后的字符串最小长度](https://leetcode.com/problems/minimum-string-length-after-removing-substrings) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/2696) | [``](/leetcode/outline/tag/stack.md) [`字符串`](/leetcode/outline/tag/string.md) [`模拟`](/leetcode/outline/tag/simulation.md) | <font color=#15bd66>Easy</font> |

src/leetcode/outline/tag/array.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@
12541254
| 2402 | [会议室 III](https://leetcode.com/problems/meeting-rooms-iii) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`排序`](/leetcode/outline/tag/sorting.md) `2+` | <font color=#ff334b>Hard</font> |
12551255
| 2403 | [杀死所有怪物的最短时间](https://leetcode.com/problems/minimum-time-to-kill-all-monsters) | | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`动态规划`](/leetcode/outline/tag/dynamic-programming.md) `1+` | <font color=#ff334b>Hard</font> |
12561256
| 2404 | [出现最频繁的偶数元素](https://leetcode.com/problems/most-frequent-even-element) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`计数`](/leetcode/outline/tag/counting.md) | <font color=#15bd66>Easy</font> |
1257-
| 2406 | [将区间分为最少组数](https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `3+` | <font color=#ffb800>Medium</font> |
1257+
| 2406 | [将区间分为最少组数](https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups) | [[✓]](https://2xiao.github.io/leetcode-js/leetcode/problem/2406) | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `3+` | <font color=#ffb800>Medium</font> |
12581258
| 2407 | [最长递增子序列 II](https://leetcode.com/problems/longest-increasing-subsequence-ii) | | [`树状数组`](/leetcode/outline/tag/binary-indexed-tree.md) [`线段树`](/leetcode/outline/tag/segment-tree.md) [`队列`](/leetcode/outline/tag/queue.md) `4+` | <font color=#ff334b>Hard</font> |
12591259
| 2408 | [设计 SQL](https://leetcode.com/problems/design-sql) | | [`设计`](/leetcode/outline/tag/design.md) [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) `1+` | <font color=#ffb800>Medium</font> |
12601260
| 2410 | [运动员和训练师的最大匹配数](https://leetcode.com/problems/maximum-matching-of-players-with-trainers) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |

src/leetcode/outline/tag/greedy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
| 2384 | [最大回文数字](https://leetcode.com/problems/largest-palindromic-number) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) `1+` | <font color=#ffb800>Medium</font> |
280280
| 2389 | [和有限的最长子序列](https://leetcode.com/problems/longest-subsequence-with-limited-sum) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) `2+` | <font color=#15bd66>Easy</font> |
281281
| 2405 | [子字符串的最优划分](https://leetcode.com/problems/optimal-partition-of-string) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) | <font color=#ffb800>Medium</font> |
282-
| 2406 | [将区间分为最少组数](https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `3+` | <font color=#ffb800>Medium</font> |
282+
| 2406 | [将区间分为最少组数](https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/2406) | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `3+` | <font color=#ffb800>Medium</font> |
283283
| 2410 | [运动员和训练师的最大匹配数](https://leetcode.com/problems/maximum-matching-of-players-with-trainers) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |
284284
| 2412 | [完成所有交易的初始最少钱数](https://leetcode.com/problems/minimum-money-required-before-transactions) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`排序`](/leetcode/outline/tag/sorting.md) | <font color=#ff334b>Hard</font> |
285285
| 2422 | [使用合并操作将数组转换为回文序列](https://leetcode.com/problems/merge-operations-to-turn-array-into-a-palindrome) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) | <font color=#ffb800>Medium</font> |

src/leetcode/outline/tag/heap-priority-queue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
| 2386 | [找出数组的第 K 大和](https://leetcode.com/problems/find-the-k-sum-of-an-array) | | [`数组`](/leetcode/outline/tag/array.md) [`排序`](/leetcode/outline/tag/sorting.md) [`堆(优先队列)`](/leetcode/outline/tag/heap-priority-queue.md) | <font color=#ff334b>Hard</font> |
147147
| 2398 | [预算内的最多机器人数目](https://leetcode.com/problems/maximum-number-of-robots-within-budget) | | [`队列`](/leetcode/outline/tag/queue.md) [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) `4+` | <font color=#ff334b>Hard</font> |
148148
| 2402 | [会议室 III](https://leetcode.com/problems/meeting-rooms-iii) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`排序`](/leetcode/outline/tag/sorting.md) `2+` | <font color=#ff334b>Hard</font> |
149-
| 2406 | [将区间分为最少组数](https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `3+` | <font color=#ffb800>Medium</font> |
149+
| 2406 | [将区间分为最少组数](https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/2406) | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `3+` | <font color=#ffb800>Medium</font> |
150150
| 2424 | [最长上传前缀](https://leetcode.com/problems/longest-uploaded-prefix) | | [`并查集`](/leetcode/outline/tag/union-find.md) [`设计`](/leetcode/outline/tag/design.md) [`树状数组`](/leetcode/outline/tag/binary-indexed-tree.md) `4+` | <font color=#ffb800>Medium</font> |
151151
| 2454 | [下一个更大元素 IV](https://leetcode.com/problems/next-greater-element-iv) | | [``](/leetcode/outline/tag/stack.md) [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) `3+` | <font color=#ff334b>Hard</font> |
152152
| 2456 | [最流行的视频创作者](https://leetcode.com/problems/most-popular-video-creator) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) `2+` | <font color=#ffb800>Medium</font> |

src/leetcode/outline/tag/prefix-sum.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
| 2389 | [和有限的最长子序列](https://leetcode.com/problems/longest-subsequence-with-limited-sum) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) `2+` | <font color=#15bd66>Easy</font> |
135135
| 2391 | [收集垃圾的最少总时间](https://leetcode.com/problems/minimum-amount-of-time-to-collect-garbage) | | [`数组`](/leetcode/outline/tag/array.md) [`字符串`](/leetcode/outline/tag/string.md) [`前缀和`](/leetcode/outline/tag/prefix-sum.md) | <font color=#ffb800>Medium</font> |
136136
| 2398 | [预算内的最多机器人数目](https://leetcode.com/problems/maximum-number-of-robots-within-budget) | | [`队列`](/leetcode/outline/tag/queue.md) [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) `4+` | <font color=#ff334b>Hard</font> |
137-
| 2406 | [将区间分为最少组数](https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `3+` | <font color=#ffb800>Medium</font> |
137+
| 2406 | [将区间分为最少组数](https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/2406) | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `3+` | <font color=#ffb800>Medium</font> |
138138
| 2420 | [找到所有好下标](https://leetcode.com/problems/find-all-good-indices) | | [`数组`](/leetcode/outline/tag/array.md) [`动态规划`](/leetcode/outline/tag/dynamic-programming.md) [`前缀和`](/leetcode/outline/tag/prefix-sum.md) | <font color=#ffb800>Medium</font> |
139139
| 2428 | [沙漏的最大总和](https://leetcode.com/problems/maximum-sum-of-an-hourglass) | | [`数组`](/leetcode/outline/tag/array.md) [`矩阵`](/leetcode/outline/tag/matrix.md) [`前缀和`](/leetcode/outline/tag/prefix-sum.md) | <font color=#ffb800>Medium</font> |
140140
| 2438 | [二的幂数组中查询范围内的乘积](https://leetcode.com/problems/range-product-queries-of-powers) | | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`前缀和`](/leetcode/outline/tag/prefix-sum.md) | <font color=#ffb800>Medium</font> |

src/leetcode/outline/tag/sorting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313
| 2386 | [找出数组的第 K 大和](https://leetcode.com/problems/find-the-k-sum-of-an-array) | | [`数组`](/leetcode/outline/tag/array.md) [`排序`](/leetcode/outline/tag/sorting.md) [`堆(优先队列)`](/leetcode/outline/tag/heap-priority-queue.md) | <font color=#ff334b>Hard</font> |
314314
| 2389 | [和有限的最长子序列](https://leetcode.com/problems/longest-subsequence-with-limited-sum) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) `2+` | <font color=#15bd66>Easy</font> |
315315
| 2402 | [会议室 III](https://leetcode.com/problems/meeting-rooms-iii) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`排序`](/leetcode/outline/tag/sorting.md) `2+` | <font color=#ff334b>Hard</font> |
316-
| 2406 | [将区间分为最少组数](https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `3+` | <font color=#ffb800>Medium</font> |
316+
| 2406 | [将区间分为最少组数](https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/2406) | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `3+` | <font color=#ffb800>Medium</font> |
317317
| 2410 | [运动员和训练师的最大匹配数](https://leetcode.com/problems/maximum-matching-of-players-with-trainers) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |
318318
| 2412 | [完成所有交易的初始最少钱数](https://leetcode.com/problems/minimum-money-required-before-transactions) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`数组`](/leetcode/outline/tag/array.md) [`排序`](/leetcode/outline/tag/sorting.md) | <font color=#ff334b>Hard</font> |
319319
| 2418 | [按身高排序](https://leetcode.com/problems/sort-the-people) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) `1+` | <font color=#15bd66>Easy</font> |

0 commit comments

Comments
 (0)