
贪心
ying______
这个作者很懒,什么都没留下…
展开
-
LeetCode 455:Assign Cookies
Note:You may assume the greed factor is always positive.You cannot assign more than one cookie to one child.Example 1:Input: [1,2,3], [1,1]Output: 1Explanation: You have 3 children and 2 cookie...原创 2019-10-08 20:48:29 · 145 阅读 · 0 评论 -
LeetCode 376 :Wiggle Subsequence
问题描述A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The first difference (if one exists) may be eithe...原创 2019-10-08 22:08:01 · 124 阅读 · 0 评论 -
LeetCode 55: Jump Game 跳跃游戏
问题描述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.Determine if...原创 2019-10-09 09:01:15 · 182 阅读 · 0 评论