Problem 3652 · Medium

Best Time to Buy and Sell Stock using Strategy

Each day has a buy, hold or sell action. One window of even length can be rewritten to hold then sell, and the change in profit is scored window by window.

Open the interactive visualisation