HardDP
Best Time Buy Sell Stock IV
You are given an integer array prices where prices[i] is the price of a given stock on the ith day, and an integer k.
This is an Arena challenge - solutions are not shown publicly.
Work on this problem and submit your solution to contribute!