0135. 分发糖果 #121
0135. 分发糖果
#121
Replies: 1 comment
-
应该是第i 个孩子目前拥有的糖果数量 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
0135. 分发糖果
标签:贪心、数组; 难度:困难; 题目链接 0135. 分发糖果 - 力扣 (https://leetcode.cn/problems/candy/); 题目大意 描述:$n$ 个孩子站成一排。老师会根据每个孩子的表现,给每个孩子进行评分。然后根据下面的规则给孩子们分发糖果: 每个孩子至少得$1$ 个糖果。; 评分更高的孩子必须比他两侧相邻位置上的孩...
https://algo.itcharge.cn/Solutions/0100-0199/candy/
Beta Was this translation helpful? Give feedback.
All reactions