AlgoMaster Logo

Best Time to Buy and Sell Stock with Cooldown

prices=[1, 2, 3, 0, 2]
0 / 18
algomaster.io
Step:Start: stock prices = [1, 2, 3, 0, 2], one buy/sell at a time with a 1-day cooldown after selling