![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
涛涛酱
北邮研究僧在读
展开
-
【LeetCode 452】 Minimum Number of Arrows to Burst Balloons
题目描述 There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the horizontal diameter. Since it’s horizontal, y-coordinates don’t matter and hence the x-coordinates of st原创 2020-05-19 21:39:11 · 79 阅读 · 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 either positive or negative. A sequence with fewer than two e原创 2020-05-18 16:19:51 · 84 阅读 · 0 评论 -
【LeetCode 455】Assign Cookies
题目描述 Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which is the minimum size of a cookie that the child will be content with; and each c原创 2020-05-18 14:01:52 · 79 阅读 · 0 评论 -
【LeetCode 628】 Maximum Product of Three Numbers
题目描述 Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Input: [1,2,3,4] Output: 24 Note: The length o...原创 2020-03-24 11:53:10 · 121 阅读 · 0 评论 -
【LeetCode 1353】 Maximum Number of Events That Can Be Attended
题目描述 Given an array of events where events[i] = [startDayi, endDayi]. Every event i starts at startDayi and ends at endDayi. You can attend an event i at any day d where startTimei <= d <= endTi...原创 2020-03-24 11:04:15 · 487 阅读 · 0 评论 -
【LeetCode 1024】 Video Stitching
题目描述 You are given a series of video clips from a sporting event that lasted T seconds. These video clips can be overlapping with each other and have varied lengths. Each video clip clips[i] is an in...原创 2020-03-06 12:01:24 · 152 阅读 · 1 评论