04 2018 档案

摘要:https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/description/ 【题意】 给定n天股市的票价,最多交易k次,问最大盈利是多少,手上不能同时持有两支股票。 【思路】 考虑加入当天买当天卖这种情况,问题转换为n天 阅读全文
posted @ 2018-04-26 13:03 shulin15 阅读(145) 评论(0) 推荐(0) 编辑