Best Time to Buy and Sell Stock with Cooldown — 2-D DP

Find the greatest profit from a series of daily prices, holding one share at most, with a forced rest day after each sale.

2-D DP · Medium

More in 2-D DP

All algorithm problems