
贪心
景行cmy
这个作者很懒,什么都没留下…
展开
-
leetcode 757. Set Intersection Size At Least Two
An integer interval[a, b](for integersa < b) is a set of all consecutive integers fromatob, includingaandb.Find the minimum size of a set S such that for every integer interval A ininte...原创 2019-08-20 17:34:31 · 152 阅读 · 0 评论 -
leetcode 502. IPO
Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, LeetCode would like to work on some projects to increase its capital before the IPO. Since it ...原创 2019-09-03 10:39:01 · 185 阅读 · 0 评论 -
leetcode 995. Minimum Number of K Consecutive Bit Flips
In an arrayAcontaining only 0s and 1s, aK-bit flipconsists of choosing a (contiguous) subarray of lengthKand simultaneously changing every 0 in the subarray to 1, and every 1 in the subarray to ...原创 2019-09-03 11:53:52 · 141 阅读 · 0 评论 -
leetcode 936. Stamping The Sequence
You want to form atargetstring oflowercase letters.At the beginning, your sequence istarget.length'?'marks. You also have astampof lowercase letters.On each turn, you may place the stamp ...原创 2019-09-03 15:40:32 · 193 阅读 · 0 评论