|
10 | 10 |
|
11 | 11 | # 贪心总结
|
12 | 12 | ## 买卖股票的最佳时机II
|
13 |
| -[LeetCode链接](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/) |
| 13 | +[LeetCode中文](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/) |
| 14 | + |
| 15 | +[LeetCode英文](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/) |
14 | 16 |
|
15 | 17 | 给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。
|
16 | 18 |
|
@@ -73,7 +75,9 @@ public:
|
73 | 75 |
|
74 | 76 | ## 柠檬水找零
|
75 | 77 |
|
76 |
| -[LeetCode链接](https://leetcode-cn.com/problems/lemonade-change) |
| 78 | +[LeetCode中文](https://leetcode-cn.com/problems/lemonade-change) |
| 79 | +
|
| 80 | +[LeetCode英文](https://leetcode.com/problems/lemonade-change) |
77 | 81 |
|
78 | 82 | 在柠檬水摊上,每一杯柠檬水的售价为 5 美元。
|
79 | 83 |
|
@@ -173,7 +177,9 @@ public:
|
173 | 177 |
|
174 | 178 | ## 分发饼干
|
175 | 179 |
|
176 |
| -[LeetCode链接](https://leetcode-cn.com/problems/assign-cookies) |
| 180 | +[LeetCode中文](https://leetcode-cn.com/problems/assign-cookies) |
| 181 | + |
| 182 | +[LeetCode英文](https://leetcode.com/problems/assign-cookies) |
177 | 183 |
|
178 | 184 | 假设你是一位很棒的家长,想要给你的孩子们一些小饼干。但是,每个孩子最多只能给一块饼干。对每个孩子 i ,都有一个胃口值 g<sub>i</sub> ,这是能让孩子们满足胃口的饼干的最小尺寸;并且每块饼干 j ,都有一个尺寸 s<sub>j</sub> 。如果 s<sub>j</sub> >= g<sub>i</sub> ,我们可以将这个饼干 j 分配给孩子 i ,这个孩子会得到满足。你的目标是尽可能满足越多数量的孩子,并输出这个最大数值。
|
179 | 185 |
|
@@ -250,7 +256,9 @@ public:
|
250 | 256 |
|
251 | 257 | # 任务调度器
|
252 | 258 |
|
253 |
| -[LeetCode链接](https://leetcode-cn.com/problems/task-scheduler) |
| 259 | +[LeetCode中文](https://leetcode-cn.com/problems/task-scheduler) |
| 260 | + |
| 261 | +[LeetCode英文](https://leetcode.com/problems/task-scheduler) |
254 | 262 |
|
255 | 263 | 给定一个用字符数组表示的 CPU 需要执行的任务列表。其中包含使用大写的 A - Z 字母表示的26 种不同种类的任务。任务可以以任意顺序执行,并且每个任务都可以在 1 个单位时间内执行完。CPU 在任何一个单位时间内都可以执行一个任务,或者在待命状态。
|
256 | 264 |
|
@@ -350,7 +358,9 @@ public:
|
350 | 358 |
|
351 | 359 | # 分割数组为连续子序列
|
352 | 360 |
|
353 |
| -[LeetCode链接](https://leetcode-cn.com/problems/split-array-into-consecutive-subsequences) |
| 361 | +[LeetCode中文](https://leetcode-cn.com/problems/split-array-into-consecutive-subsequences) |
| 362 | +
|
| 363 | +[LeetCode英文](https://leetcode.com/problems/split-array-into-consecutive-subsequences) |
354 | 364 |
|
355 | 365 | 输入一个按升序排序的整数数组(可能包含重复数字),你需要将它们分割成几个子序列,其中每个子序列至少包含三个连续整数。返回你是否能做出这样的分割?
|
356 | 366 |
|
@@ -437,7 +447,9 @@ public:
|
437 | 447 |
|
438 | 448 | # 跳跃游戏
|
439 | 449 |
|
440 |
| -[LeetCode链接](https://leetcode-cn.com/problems/jump-game) |
| 450 | +[LeetCode中文](https://leetcode-cn.com/problems/jump-game) |
| 451 | + |
| 452 | +[LeetCode英文](https://leetcode.com/problems/jump-game) |
441 | 453 |
|
442 | 454 | 给定一个非负整数数组,你最初位于数组的第一个位置。
|
443 | 455 |
|
|
0 commit comments