
贪心法
永远的EMT
每天时刻保持超越自我的意识
展开
-
【LeetCode】135. 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 one ca...原创 2018-10-14 23:17:49 · 136 阅读 · 0 评论 -
【LeetCode】134. 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 its ...原创 2018-10-15 22:43:49 · 178 阅读 · 0 评论