LeetCode
文章平均质量分 72
夜舟酥雨
这个作者很懒,什么都没留下…
展开
-
LeetCode——309. Best Time to Buy and Sell Stock with Cooldown(卖股票系列+冷却时间)
一、题目309:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie...原创 2018-09-12 22:55:41 · 255 阅读 · 0 评论 -
LeetCode——121. Best Time to Buy and Sell Stock(买股票系列1)
一、题目121:Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (i.e., buy one and sell one share of t...原创 2018-09-18 10:45:24 · 202 阅读 · 0 评论