Skip to content

Commit fc906ba

Browse files
committed
修改 贪心.md
1 parent ad59e3b commit fc906ba

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

LeetCode/贪心.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
# 贪心总结
1212
## 买卖股票的最佳时机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/)
1416

1517
给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。
1618

@@ -73,7 +75,9 @@ public:
7375
7476
## 柠檬水找零
7577
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)
7781
7882
在柠檬水摊上,每一杯柠檬水的售价为 5 美元。
7983
@@ -173,7 +177,9 @@ public:
173177

174178
## 分发饼干
175179

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)
177183

178184
假设你是一位很棒的家长,想要给你的孩子们一些小饼干。但是,每个孩子最多只能给一块饼干。对每个孩子 i ,都有一个胃口值 g<sub>i</sub> ,这是能让孩子们满足胃口的饼干的最小尺寸;并且每块饼干 j ,都有一个尺寸 s<sub>j</sub> 。如果 s<sub>j</sub> >= g<sub>i</sub> ,我们可以将这个饼干 j 分配给孩子 i ,这个孩子会得到满足。你的目标是尽可能满足越多数量的孩子,并输出这个最大数值。
179185

@@ -250,7 +256,9 @@ public:
250256

251257
# 任务调度器
252258

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)
254262

255263
给定一个用字符数组表示的 CPU 需要执行的任务列表。其中包含使用大写的 A - Z 字母表示的26 种不同种类的任务。任务可以以任意顺序执行,并且每个任务都可以在 1 个单位时间内执行完。CPU 在任何一个单位时间内都可以执行一个任务,或者在待命状态。
256264

@@ -350,7 +358,9 @@ public:
350358
351359
# 分割数组为连续子序列
352360
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)
354364
355365
输入一个按升序排序的整数数组(可能包含重复数字),你需要将它们分割成几个子序列,其中每个子序列至少包含三个连续整数。返回你是否能做出这样的分割?
356366
@@ -437,7 +447,9 @@ public:
437447

438448
# 跳跃游戏
439449

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)
441453

442454
给定一个非负整数数组,你最初位于数组的第一个位置。
443455

0 commit comments

Comments
 (0)