[LeetCode] Best Time to Buy and Sell Stock with Cooldown 买股票的最佳时间含冷冻期

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 complet...
posted @ 2015-11-26 13:03  Grandyang  阅读(32383)  评论(5)    收藏  举报
Fork me on GitHub