AlgoMaster Logo

Best Time to Buy and Sell Stock with Cooldown

prices=[1, 2, 3, 0, 2]
0 / 67
algomaster.io
Step:Prices = [1, 2, 3, 0, 2], one share at a time with a 1-day cooldown after every sale