Best Time to Buy and Sell Stock with Cooldown
Given daily stock prices, return the maximum profit from nonoverlapping transactions when buying is forbidden on the day immediately after a sale.
Given daily stock prices, return the maximum profit from nonoverlapping transactions when buying is forbidden on the day immediately after a sale.