题目来源:https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/
问题描述
188. Best Time to Buy and Sell Stock IV
Hard
Say you have an array for which the ithelement is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most ktransactions.