Best Time to Buy and Sell Stock IV

Return the maximum profit with at most k transactions.

Examples
Input: [0,[]]
Output: 0
Hints

Best Time to Buy and Sell Stock IV

Return the maximum profit with at most k transactions.