![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
greedy
NoooName
这个作者很懒,什么都没留下…
展开
-
[Leetcode]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 i原创 2015-02-04 16:39:32 · 298 阅读 · 0 评论 -
[Leetcode]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 on原创 2015-02-03 13:33:16 · 332 阅读 · 0 评论 -
[Leetcode]Jump Game II
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 i原创 2015-02-05 16:55:01 · 273 阅读 · 0 评论 -
[Leetcode]Gas Station
There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to原创 2015-02-08 10:43:40 · 314 阅读 · 0 评论 -
[Leetcode]Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Above is a histogram where width o原创 2015-03-14 03:27:07 · 407 阅读 · 0 评论