
算法,leetcode,C++,贪心
文章平均质量分 79
Zarlove
这个作者很懒,什么都没留下…
展开
-
Leetcode算法学习日志-122 Best Time to Buy and Sell Stock II
Leetcode 122 Best Time to Buy and Sell Stock II题目原文Say you have an array for which the ith element is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You m原创 2017-09-25 21:27:37 · 388 阅读 · 0 评论 -
Leetcode算法学习日志-452 Minimum Number of Arrows to Burst Balloons
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 coordin原创 2017-10-12 15:21:33 · 365 阅读 · 0 评论 -
Leetcode算法学习日志-621 Task Scheduler
Leetcode 621 Task Scheduler题目原文Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could be done with原创 2017-10-12 15:25:48 · 1738 阅读 · 0 评论 -
Leetcode算法学习日志-553 Optimal Division
Leetcode 553 Optimal Division题目原文Given a list of positive integers, the adjacent integers will perform the float division. For example, [2,3,4] -> 2 / 3 / 4.However, you can add any number of原创 2017-11-01 20:09:20 · 273 阅读 · 0 评论 -
Leetcode算法学习日志-561 Array Partition I
Leetcode 561 Array Partition I题目原文Given an array of 2n integers, your task is to group these integers inton pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, b原创 2017-11-02 11:21:50 · 275 阅读 · 0 评论