![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
Charles-Liu
这个作者很懒,什么都没留下…
展开
-
Remove K Digits
[leetcode]Remove K Digits链接:https://leetcode.com/problems/remove-k-digits/description/QuestionGiven a non-negative integer num represented as a string, remove k digits from the number so that ...原创 2018-08-14 22:07:43 · 144 阅读 · 0 评论 -
Queue Reconstruction by Height
[leetcode]Queue Reconstruction by Height链接:https://leetcode.com/problems/queue-reconstruction-by-height/description/QuestionSuppose you have a random list of people standing in a queue. Each p...原创 2018-08-08 22:34:17 · 122 阅读 · 0 评论 -
Partition Labels
[leetcode]Partition Labels链接:https://leetcode.com/problems/partition-labels/description/QuestionA string S of lowercase letters is given. We want to partition this string into as many parts as...原创 2018-08-08 22:33:55 · 118 阅读 · 0 评论 -
Non-overlapping Intervals
[leetcode]Non-overlapping Intervals链接:https://leetcode.com/problems/non-overlapping-intervals/description/QuestionGiven a collection of intervals, find the minimum number of intervals you need...原创 2018-08-08 22:33:33 · 109 阅读 · 0 评论 -
Minimum Number of Arrows to Burst Balloons
[leetcode]Minimum Number of Arrows to Burst Balloons链接:https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/description/QuestionThere are a number of spherical balloons spr...原创 2018-08-08 22:32:47 · 126 阅读 · 0 评论 -
Lemonade Change
[leetcode]Lemonade Change链接:https://leetcode.com/problems/lemonade-change/description/QuestionAt a lemonade stand, each lemonade costs $5. Customers are standing in a queue to buy from you, ...原创 2018-08-08 22:32:10 · 114 阅读 · 0 评论 -
Assign Cookies
[leetcode]Assign Cookies链接:https://leetcode.com/problems/assign-cookies/description/QuestionAssume you are an awesome parent and want to give your children some cookies. But, you should give e...原创 2018-08-08 22:31:15 · 142 阅读 · 0 评论 -
My Calendar II
[leetcode]My Calendar II链接:https://leetcode.com/problems/my-calendar-ii/QuestionImplement a MyCalendarTwo class to store your events. A new event can be added if adding the event will not caus...原创 2018-08-12 21:55:24 · 160 阅读 · 0 评论 -
Monotone Increasing Digits
[leetcode]Monotone Increasing Digits链接:https://leetcode.com/problems/monotone-increasing-digits/description/QuestionGiven a non-negative integer N, find the largest number that is less than or...原创 2018-08-12 21:54:38 · 148 阅读 · 0 评论 -
Jump Game
[leetcode]Jump Game链接:https://leetcode.com/problems/jump-game/description/QuestionGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each e...原创 2018-08-11 22:21:14 · 96 阅读 · 0 评论 -
Dota2 Senate
[leetcode]Dota2 Senate链接:https://leetcode.com/problems/dota2-senate/description/QuestionIn the world of Dota2, there are two parties: the Radiant and the Dire.The Dota2 senate consists of se...原创 2018-08-11 22:19:33 · 475 阅读 · 0 评论 -
Contains Duplicate III
[leetcode]Contains Duplicate III链接:https://leetcode.com/problems/contains-duplicate-iii/description/QuestionGiven an array of integers, find out whether there are two distinct indices i&n...原创 2018-08-11 22:18:53 · 80 阅读 · 0 评论 -
Advantage Shuffle
[leetcode]Advantage Shuffle链接:https://leetcode.com/problems/advantage-shuffle/description/QuestionGiven two arrays A and B of equal size, the advantage of A with respect to B is the number of ...原创 2018-08-11 22:18:02 · 249 阅读 · 0 评论 -
Ugly Number II
[leetcode]Ugly Number链接:https://leetcode.com/problems/ugly-number/description/QuestionWrite a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only ...原创 2018-08-14 22:12:14 · 157 阅读 · 0 评论 -
Task Scheduler
[leetcode]Task Scheduler链接:https://leetcode.com/problems/task-scheduler/description/QuestionGiven a char array representing tasks CPU need to do. It contains capital letters A to Z where diffe...原创 2018-08-14 22:11:35 · 325 阅读 · 0 评论 -
Split Array into Consecutive Subsequences
[leetcode]Split Array into Consecutive Subsequences链接:https://leetcode.com/problems/split-array-into-consecutive-subsequences/QuestionYou are given an integer array sorted in ascending order (...原创 2018-08-14 22:10:45 · 145 阅读 · 0 评论 -
Score After Flipping Matrix
[leetcode]Score After Flipping Matrix链接:https://leetcode.com/problems/score-after-flipping-matrix/description/QuestionWe have a two dimensional matrix A where each value is 0 or 1.A move con...原创 2018-08-14 22:10:04 · 109 阅读 · 0 评论 -
Reorganize String
[leetcode]Reorganize String链接:https://leetcode.com/problems/reorganize-string/description/QuestionGiven a string S, check if the letters can be rearranged so that two characters that are adjac...原创 2018-08-14 22:08:58 · 170 阅读 · 0 评论 -
Score After Flipping Matrix
[leetcode]Score After Flipping Matrix链接:https://leetcode.com/problems/score-after-flipping-matrix/description/QuestionWe have a two dimensional matrix A where each value is 0 or 1.A move con...原创 2018-08-08 22:34:41 · 112 阅读 · 0 评论