
贪心
HuangHongkai_
这个作者很懒,什么都没留下…
展开
-
LeetCode135. Candy (贪心)
There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requirements:Each child must have at least one can...原创 2018-10-30 20:12:49 · 237 阅读 · 0 评论 -
LeetCode 45. Jump Game II (贪心/bfs,dfs超时)
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Your goal is to r...原创 2018-10-30 21:22:40 · 396 阅读 · 0 评论